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

Duncan Sands baldrick at free.fr
Sat Jul 14 06:46:12 PDT 2007


Hi Devang,

> >> 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.
> >
> > no, it doesn't exist in 4.0.
> 
> hmm. that can not be true. It was applied by Evan on May 07, 2007 to  
> unbreak Apple style builds.

this difference exists between llvm-gcc-4.0 (the mirror) and llvm-gcc-4.2
today, check llvm-linker-hack.cpp yourself if you like.  There was a change
to the mirror in May 07, but it was just changing Bytecode -> Bitcode.  My
guess is the Evan's change didn't reach the mirror.  Here is the function
as it exists in the llvm-gcc-4.0 mirror today:

void dummy_function() {
  new llvm::ExistingModuleProvider(0);
  llvm::createVerifierPass();
  llvm::WriteBitcodeToFile(0, llvm::cout);
  llvm::ParseBitcodeFile(NULL);
...

and in llvm-gcc-4.2:
void dummy_function() {
  new llvm::ExistingModuleProvider(0);
  llvm::createVerifierPass();
  llvm::CreateBitcodeWriterPass(*llvm::cout);
  llvm::WriteBitcodeToFile(0, *llvm::cout);
  llvm::ParseBitcodeFile(NULL);
  llvm::MemoryBuffer::getNewMemBuffer(0);

If the llvm-gcc-4.2 version is correct, the mirror needs to be corrected.
Not sure how to do that...

Ciao,

Duncan.



More information about the llvm-dev mailing list