Browse Source

Fixed the target triples with the new Clang.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/330/head
Dimitar Dobrev 11 years ago
parent
commit
0d605cd3fa
  1. 2
      src/CppParser/Parser.cpp

2
src/CppParser/Parser.cpp

@ -153,7 +153,7 @@ void Parser::SetupHeader()
TO->Triple = llvm::sys::getDefaultTargetTriple(); TO->Triple = llvm::sys::getDefaultTargetTriple();
if (!Opts->TargetTriple.empty()) if (!Opts->TargetTriple.empty())
TO->Triple = Opts->TargetTriple; TO->Triple = llvm::Triple::normalize(Opts->TargetTriple);
TargetInfo* TI = TargetInfo::CreateTargetInfo(C->getDiagnostics(), TO); TargetInfo* TI = TargetInfo::CreateTargetInfo(C->getDiagnostics(), TO);
if (!TI) if (!TI)

Loading…
Cancel
Save