[llvm-commits] [llvm-gcc-4.2] r70345 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Bill Wendling
isanbard at gmail.com
Tue Apr 28 17:15:55 PDT 2009
Author: void
Date: Tue Apr 28 19:15:55 2009
New Revision: 70345
URL: http://llvm.org/viewvc/llvm-project?rev=70345&view=rev
Log:
Pass in the value of "optimize" instead of just indicated if it's "fast" or
not. This coincides with the '-fast to -O#' change.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=70345&r1=70344&r2=70345&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Apr 28 19:15:55 2009
@@ -591,7 +591,7 @@
// Note, this also adds codegenerator level optimization passes.
switch (TheTarget->addPassesToEmitFile(*PM, *AsmOutRawStream,
TargetMachine::AssemblyFile,
- /*FAST*/optimize == 0)) {
+ optimize)) {
default:
case FileModel::Error:
cerr << "Error interfacing to target machine!\n";
@@ -600,7 +600,7 @@
break;
}
- if (TheTarget->addPassesToEmitFileFinish(*PM, 0, /*Fast*/optimize == 0)) {
+ if (TheTarget->addPassesToEmitFileFinish(*PM, 0, optimize)) {
cerr << "Error interfacing to target machine!\n";
exit(1);
}
@@ -737,7 +737,7 @@
// Note, this also adds codegenerator level optimization passes.
switch (TheTarget->addPassesToEmitFile(*PM, *AsmOutRawStream,
TargetMachine::AssemblyFile,
- /*FAST*/optimize == 0)) {
+ optimize)) {
default:
case FileModel::Error:
cerr << "Error interfacing to target machine!\n";
@@ -746,7 +746,7 @@
break;
}
- if (TheTarget->addPassesToEmitFileFinish(*PM, 0, /*Fast*/optimize == 0)) {
+ if (TheTarget->addPassesToEmitFileFinish(*PM, 0, optimize)) {
cerr << "Error interfacing to target machine!\n";
exit(1);
}
More information about the llvm-commits
mailing list