search for: llvmgetbitcodemoduleincontet2

Displaying 1 result from an estimated 1 matches for "llvmgetbitcodemoduleincontet2".

2017 Mar 08
2
LLVMGetBitcodeModuleInContext2 problem
..._module; bool flag; module_path = LLVMCreateMemoryBufferWithMemoryRange(path, strlen(path), "path", 1); global_context = LLVMGetGlobalContext(); flag = LLVMGetBitcodeModuleInContext2(global_context, module_path, &ir_lib_module); printf("LLVMGetBitcodeModuleInContet2() returned %d\n", flag); } When this code is 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 th...