[llvm-commits] [PATCH] gcc/llvm-backend.cpp

Bill Wendling isanbard at gmail.com
Wed Feb 7 17:51:57 PST 2007


Applied this patch. This goes along with the changes I checked in that
removed the MachO and ELF writers from LLI.

-bw

Index: gcc/llvm-backend.cpp
===================================================================
--- gcc/llvm-backend.cpp        (revision 123562)
+++ gcc/llvm-backend.cpp        (revision 123565)
@@ -338,10 +338,11 @@
     }

     // Normal mode, emit a .s file by running the code generator.
-    if (TheTarget->addPassesToEmitFile(*PM, *AsmOutStream,
+    if (TheTarget->addPassesToEmitFile(*PM, *AsmOutStream,
                                        TargetMachine::AssemblyFile,
-                                       /*FAST*/optimize == 0)) {
-      cerr << "Error interfacing to target machine!";
+                                       /*FAST*/optimize == 0)
+        == FileModel::Error) {
+      cerr << "Error interfacing to target machine!\n";
       exit(1);
     }



More information about the llvm-commits mailing list