[llvm-commits] [dragonegg] r144979 - /dragonegg/trunk/src/Backend.cpp
Duncan Sands
baldrick at free.fr
Fri Nov 18 14:11:26 PST 2011
Author: baldrick
Date: Fri Nov 18 16:11:25 2011
New Revision: 144979
URL: http://llvm.org/viewvc/llvm-project?rev=144979&view=rev
Log:
Port commit 144790 (evancheng) from llvm-gcc, fixing the dragonegg
buildbots. Original commit message:
Match LLVM API change.
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=144979&r1=144978&r2=144979&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Fri Nov 18 16:11:25 2011
@@ -434,7 +434,7 @@
#endif
TheTarget = TME->createTargetMachine(TargetTriple, CPU, FeatureStr,
- RelocModel, CMModel);
+ RelocModel, CMModel, CodeGenOptLevel());
assert(TheTarget->getTargetData()->isBigEndian() == BYTES_BIG_ENDIAN);
TheTarget->setMCUseCFI(flag_dwarf2_cfi_asm);
// Binutils does not yet support the use of file directives with an explicit
@@ -610,7 +610,7 @@
InitializeOutputStreams(false);
if (TheTarget->addPassesToEmitFile(*PM, FormattedOutStream,
TargetMachine::CGFT_AssemblyFile,
- CodeGenOptLevel(), DisableVerify))
+ DisableVerify))
DieAbjectly("Error interfacing to target machine!");
}
@@ -693,7 +693,7 @@
InitializeOutputStreams(false);
if (TheTarget->addPassesToEmitFile(*PM, FormattedOutStream,
TargetMachine::CGFT_AssemblyFile,
- CodeGenOptLevel(), DisableVerify))
+ DisableVerify))
DieAbjectly("Error interfacing to target machine!");
}
}
More information about the llvm-commits
mailing list