[llvm-commits] [llvm] r74614 - in /llvm/trunk: examples/BrainF/ examples/Fibonacci/ examples/HowToUseJIT/ examples/Kaleidoscope/ examples/ModuleMaker/ examples/ParallelJIT/ include/llvm-c/ include/llvm/ include/llvm/Assembly/ include/llvm/Bitcode/ include/llvm/Debugger/ include/llvm/Transforms/Utils/ lib/Archive/ lib/AsmParser/ lib/Bitcode/Reader/ lib/Debugger/ lib/Linker/ lib/Transforms/Utils/ lib/VMCore/ tools/bugpoint/ tools/llc/ tools/lli/ tools/llvm-ar/ tools/llvm-as/ tools/llvm-db/ tools/llvm-dis/ tools/llvm-extr...

Stuart Hastings stuart at apple.com
Wed Jul 1 13:55:07 PDT 2009


On Jul 1, 2009, at 11:37 AM, Stuart Hastings wrote:

>
> On Jul 1, 2009, at 11:25 AM, Owen Anderson wrote:
>
>> Seems likely.  Did you pull in the subsequent commit to LLVM-GCC as
>> well?
>
> I suppose not.  I generally check them out together; I got r74618  
> and r74616 (for llvm and llvm-gcc, respectively).
>
> I'll update and try again...

Hm.  r74623 (llvm and llvm-gcc) has the same diagnostic.

Is this because my current partition has 10A362?

In ReaderWriter.h, I see

  36329    lattner   /// ParseBitcodeFile - Read the specified bitcode  
file, returning the module.
  36554    lattner   /// If an error occurs, this returns null and  
fills in *ErrMsg if it is
  36554    lattner   /// non-null.  This method *never* takes  
ownership of Buffer.
  74614   resistor   Module *ParseBitcodeFile(MemoryBuffer *Buffer,  
LLVMContext* Context,
  74614   resistor                            std::string *ErrMsg = 0);

In llvm-linker-hack.cpp, I see

#include "llvm/Bitcode/ReaderWriter.h"
...
	  llvm::ParseBitcodeFile(NULL);

If I fix that, changing it to

  	 llvm::ParseBitcodeFile(NULL, NULL, NULL);

it gets further, stopping with this diagnostic:

Undefined symbols:
   "llvm::LLVMContext::LLVMContext()", referenced from:
       _llvm_initialize_backend in libbackend.a(llvm-backend.o)

Owen, would you please look into this?

Thank you in advance,

stuart

>> --Owen
>>
>> On Jul 1, 2009, at 11:21 AM, Stuart Hastings wrote:
>>
>>> Owen, I was running an Apple-Style(tm) build of LLVM-GCC  and got
>>> this:
>>>
>>> /Developer/usr/local/include/llvm/Bitcode/ReaderWriter.h: In  
>>> function
>>> 'void dummy_function()':
>>> /Developer/usr/local/include/llvm/Bitcode/ReaderWriter.h:42: error:
>>> too few arguments to function 'llvm::Module*
>>> llvm::ParseBitcodeFile(llvm::MemoryBuffer*, llvm::LLVMC\
>>> ontext*, std::string*)'
>>>
>>> Could this be related to your change^H^H^H^H^H^Himprovement to
>>> ReaderWriter.h  ?
>>>
>>> stuart




More information about the llvm-commits mailing list