Displaying 2 results from an estimated 2 matches for "parsemetadata".
2011 Mar 23
0
[LLVMdev] new at LLVM
...gt; Its working fine with "llvm-gcc hello.c -o hello" and then "./hello" command..
> but with "llvm-gcc -O3 -emit-llvm hello.c -c -o hello.bc" and then "lli hello.bc" its give error :
>
>
> lli: BitcodeReader.cpp:863: bool llvm::BitcodeReader::ParseMetadata(): Assertion `Kind == NewKind && "FIXME: Unable to handle custom metadata mismatch!"' failed.
> 0 lli 0x08721a28
> Stack dump:
> 0. Program arguments: lli hello.bc
> Aborted
>
>
> now what i had to do
lli probably doesn't deal well with some o...
2014 Jan 22
2
[LLVMdev] [RFC] LTO: deallocating llvm::Module inside lto_codegen_add_module
....1180e58 100644
--- a/include/llvm/LTO/LTOModule.h
+++ b/include/llvm/LTO/LTOModule.h
@@ -164,6 +164,11 @@ public:
return _asm_undefines;
}
+ void destroyLLVMModule() {
+ _module.reset();
+ _target.reset();
+ }
+
private:
/// parseMetadata - Parse metadata from the module
// FIXME: it only parses "Linker Options" metadata at the moment
diff --git a/lib/LTO/LTOCodeGenerator.cpp b/lib/LTO/LTOCodeGenerator.cpp
index cae0ea2..a947fa8 100644
--- a/lib/LTO/LTOCodeGenerator.cpp
+++ b/lib/LTO/LTOCodeGenerator...