[LLVMdev] llvm-gcc-4-2 development branch is open

Duncan Sands baldrick at free.fr
Fri Jul 13 06:39:57 PDT 2007


Hi Devang,

> llvm-gcc-4-2 development branch is now open for development at
> 
> 	llvm.org/svn/llvm-project/llvm-gcc-4-2

I noticed the following difference between llvm-gcc and llvm-gcc-4-2
in gcc/llvm-linker-hack.cpp, any idea where it came from?

Thanks,  Duncan.

@@ -28,6 +28,7 @@
 #include "llvm/Bitcode/ReaderWriter.h"
 #include "llvm/CodeGen/ScheduleDAG.h"
 #include "llvm/CodeGen/Passes.h"
+#include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Streams.h"

 /// dummy_function - This is used when linking the LLVM libraries into a dynamic
@@ -40,8 +41,10 @@
 void dummy_function() {
   new llvm::ExistingModuleProvider(0);
   llvm::createVerifierPass();
-  llvm::WriteBitcodeToFile(0, llvm::cout);
+  llvm::CreateBitcodeWriterPass(*llvm::cout);
+  llvm::WriteBitcodeToFile(0, *llvm::cout);
   llvm::ParseBitcodeFile(NULL);
+  llvm::MemoryBuffer::getNewMemBuffer(0);

   llvm::createInstructionCombiningPass();
   llvm::createScalarReplAggregatesPass();



More information about the llvm-dev mailing list