Displaying 1 result from an estimated 1 matches for "hasvalidbitcodehead".
Did you mean:
hasvalidbitcodeheader
2017 Mar 08
2
LLVMGetBitcodeModuleInContext2 problem
...s called, this is printed:
error: Invalid bitcode signature
from what I can tell, the bitcode file is correct:
00000000 42 43 c0 de 35 14 00 00 05 00 00 00 62 0c 30 24
|BC..5.......b.0$|
...
This seems to match this code:
/// Helper to read the header common to all bitcode files.
static bool hasValidBitcodeHeader(BitstreamCursor &Stream) {
// Sniff for the signature.
if (Stream.Read(8) != 'B' ||
Stream.Read(8) != 'C' ||
Stream.Read(4) != 0x0 ||
Stream.Read(4) != 0xC ||
Stream.Read(4) != 0xE ||
Stream.Read(4) != 0xD)
return false;
return true;
}...