[llvm-branch-commits] [llvm-gcc-branch] r70348 - /llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp
Bill Wendling
isanbard at gmail.com
Tue Apr 28 17:34:16 PDT 2009
Author: void
Date: Tue Apr 28 19:34:16 2009
New Revision: 70348
URL: http://llvm.org/viewvc/llvm-project?rev=70348&view=rev
Log:
Merge in r70345:
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/branches/Apple/Dib/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp?rev=70348&r1=70347&r2=70348&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp Tue Apr 28 19:34:16 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-branch-commits
mailing list