[cfe-commits] r95125 - /cfe/trunk/lib/Frontend/Backend.cpp

Chris Lattner sabre at nondot.org
Tue Feb 2 13:06:51 PST 2010


Author: lattner
Date: Tue Feb  2 15:06:50 2010
New Revision: 95125

URL: http://llvm.org/viewvc/llvm-project?rev=95125&view=rev
Log:
update for llvm api changes.

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=95125&r1=95124&r2=95125&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/Backend.cpp (original)
+++ cfe/trunk/lib/Frontend/Backend.cpp Tue Feb  2 15:06:50 2010
@@ -306,12 +306,12 @@
     // Normal mode, emit a .s file by running the code generator.
     // Note, this also adds codegenerator level optimization passes.
     switch (TM->addPassesToEmitFile(*PM, FormattedOutStream,
-                                    TargetMachine::AssemblyFile, OptLevel)) {
+                                    TargetMachine::CGFT_AssemblyFile,
+                                    OptLevel)) {
     default:
-    case FileModel::Error:
       Diags.Report(diag::err_fe_unable_to_interface_with_target);
       return false;
-    case FileModel::AsmFile:
+    case TargetMachine::CGFT_AssemblyFile:
       break;
     }
   }





More information about the cfe-commits mailing list