[llvm-commits] [llvm-gcc-4.2] r95204 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Chris Lattner
sabre at nondot.org
Tue Feb 2 21:56:22 PST 2010
Author: lattner
Date: Tue Feb 2 23:56:22 2010
New Revision: 95204
URL: http://llvm.org/viewvc/llvm-project?rev=95204&view=rev
Log:
update for llvm api 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=95204&r1=95203&r2=95204&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Feb 2 23:56:22 2010
@@ -672,14 +672,11 @@
// Normal mode, emit a .s file by running the code generator.
// Note, this also adds codegenerator level optimization passes.
- switch (TheTarget->addPassesToEmitFile(*PM, *AsmOutRawStream,
- TargetMachine::CGFT_AssemblyFile,
- OptLevel)) {
- default:
+ if (TheTarget->addPassesToEmitFile(*PM, *AsmOutRawStream,
+ TargetMachine::CGFT_AssemblyFile,
+ OptLevel)) {
errs() << "Error interfacing to target machine!\n";
exit(1);
- case TargetMachine::CGFT_AssemblyFile:
- break;
}
}
@@ -760,14 +757,11 @@
// Normal mode, emit a .s file by running the code generator.
// Note, this also adds codegenerator level optimization passes.
- switch (TheTarget->addPassesToEmitFile(*PM, *AsmOutRawStream,
- TargetMachine::CGFT_AssemblyFile,
- OptLevel)) {
- default:
+ if (TheTarget->addPassesToEmitFile(*PM, *AsmOutRawStream,
+ TargetMachine::CGFT_AssemblyFile,
+ OptLevel)) {
errs() << "Error interfacing to target machine!\n";
exit(1);
- case TargetMachine::CGFT_AssemblyFile:
- break;
}
}
}
More information about the llvm-commits
mailing list