[cfe-commits] r70409 - /cfe/trunk/tools/clang-cc/Backend.cpp
Evan Cheng
evan.cheng at apple.com
Wed Apr 29 14:02:35 PDT 2009
Author: evancheng
Date: Wed Apr 29 16:02:33 2009
New Revision: 70409
URL: http://llvm.org/viewvc/llvm-project?rev=70409&view=rev
Log:
Match addPassesToEmitFile API change.
Modified:
cfe/trunk/tools/clang-cc/Backend.cpp
Modified: cfe/trunk/tools/clang-cc/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/Backend.cpp?rev=70409&r1=70408&r2=70409&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/Backend.cpp (original)
+++ cfe/trunk/tools/clang-cc/Backend.cpp Wed Apr 29 16:02:33 2009
@@ -260,7 +260,8 @@
// Normal mode, emit a .s file by running the code generator.
// Note, this also adds codegenerator level optimization passes.
switch (TM->addPassesToEmitFile(*PM, *AsmOutStream,
- TargetMachine::AssemblyFile, Fast)) {
+ TargetMachine::AssemblyFile,
+ CompileOpts.OptimizationLevel)) {
default:
case FileModel::Error:
Error = "Unable to interface with target machine!\n";
@@ -269,7 +270,8 @@
break;
}
- if (TM->addPassesToEmitFileFinish(*CodeGenPasses, 0, Fast)) {
+ if (TM->addPassesToEmitFileFinish(*CodeGenPasses, 0,
+ CompileOpts.OptimizationLevel)) {
Error = "Unable to interface with target machine!\n";
return false;
}
More information about the cfe-commits
mailing list