[cfe-commits] r95203 - /cfe/trunk/lib/Frontend/Backend.cpp
Chris Lattner
sabre at nondot.org
Tue Feb 2 21:55:22 PST 2010
Author: lattner
Date: Tue Feb 2 23:55:22 2010
New Revision: 95203
URL: http://llvm.org/viewvc/llvm-project?rev=95203&view=rev
Log:
update for llvm api change.
Modified:
cfe/trunk/lib/Frontend/Backend.cpp
Modified: cfe/trunk/lib/Frontend/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Backend.cpp?rev=95203&r1=95202&r2=95203&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/Backend.cpp (original)
+++ cfe/trunk/lib/Frontend/Backend.cpp Tue Feb 2 23:55:22 2010
@@ -308,8 +308,7 @@
TargetMachine::CodeGenFileType CGFT = TargetMachine::CGFT_AssemblyFile;
if (Action == Backend_EmitObj)
CGFT = TargetMachine::CGFT_ObjectFile;
- if (TM->addPassesToEmitFile(*PM, FormattedOutStream,
- CGFT, OptLevel) != CGFT) {
+ if (TM->addPassesToEmitFile(*PM, FormattedOutStream, CGFT, OptLevel)) {
Diags.Report(diag::err_fe_unable_to_interface_with_target);
return false;
}
More information about the cfe-commits
mailing list