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

Chris Lattner sabre at nondot.org
Fri Jul 13 09:34:57 PDT 2007


On Fri, 13 Jul 2007, Duncan Sands wrote:
> 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?

This is probably a patch that got checked into llvm-gcc4 after devang 
started work on 4.2.  Please feel free to update 4.2 to the version in 
4.0.

Thanks!

-Chris

> @@ -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();
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list