[llvm-commits] [llvm-gcc-4.2] r79839 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp

Chris Lattner sabre at nondot.org
Sun Aug 23 00:40:47 PDT 2009


Author: lattner
Date: Sun Aug 23 02:40:47 2009
New Revision: 79839

URL: http://llvm.org/viewvc/llvm-project?rev=79839&view=rev
Log:
use the raw_ostream version of createBitcodeWriterPass.

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=79839&r1=79838&r2=79839&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Sun Aug 23 02:40:47 2009
@@ -616,7 +616,7 @@
 
   // Emit an LLVM .bc file to the output.  This is used when passed
   // -emit-llvm -c to the GCC driver.
-  PerModulePasses->add(CreateBitcodeWriterPass(*AsmOutStream));
+  PerModulePasses->add(createBitcodeWriterPass(*AsmOutRawStream));
   
   // Disable emission of .ident into the output file... which is completely
   // wrong for llvm/.bc emission cases.
@@ -750,7 +750,7 @@
   if (emit_llvm_bc) {
     // Emit an LLVM .bc file to the output.  This is used when passed
     // -emit-llvm -c to the GCC driver.
-    PerModulePasses->add(CreateBitcodeWriterPass(*AsmOutStream));
+    PerModulePasses->add(createBitcodeWriterPass(*AsmOutRawStream));
     HasPerModulePasses = true;
   } else if (emit_llvm) {
     // Emit an LLVM .ll file to the output.  This is used when passed 
@@ -950,7 +950,7 @@
     raw_ostream *AsmIntermediateRawOutStream = 
       new raw_os_ostream(*AsmIntermediateOutStream);
     if (emit_llvm_bc)
-      IntermediatePM->add(CreateBitcodeWriterPass(*AsmIntermediateOutStream));
+     IntermediatePM->add(createBitcodeWriterPass(*AsmIntermediateRawOutStream));
     if (emit_llvm)
       IntermediatePM->add(createPrintModulePass(AsmIntermediateRawOutStream));
     IntermediatePM->run(*TheModule);





More information about the llvm-commits mailing list