[LLVMdev] Invalid bitcode signature

Duncan Sands baldrick at free.fr
Sat Feb 4 09:30:56 PST 2012


Hi Fraser,

On 04/02/12 12:09, Fraser Cormack wrote:
>
>
> Bill Wendling-3 wrote:
>>
>> The error is coming from the bit-code reader. Make sure that you generated
>> the file with '-emit-llvm' (i.e., it's not an object file) and that it's
>> the binary version of the bit-code file, not the text version.
>>
>> And, llvm-gcc? really? :-)
>>
>>
>
> Is there no way that the API can generate valid bitcode?

it can, for example by generating human readable IR rather than bitcode.
Why don't you look in the file and see what's in there?

Ciao, Duncan.



More information about the llvm-dev mailing list