search for: moduletosav

Displaying 3 results from an estimated 3 matches for "moduletosav".

Did you mean: moduletosave
2005 Jun 04
1
[LLVMdev] "Value in symtab but has no slot number!!"
...t was a problem with some Alloca instructions). I could not find a "verify" method in the Module class, but just for the records, I did this: --------------- PassManager Passes; // Add an appropriate TargetData instance for this module... Passes.add(new TargetData("save", ModuleToSave)); // Make sure the input LLVM is well formed. Passes.add(createVerifierPass()); Passes.run(*ModuleToSave); --------------- I got stuck in another problem. I suppose it's very simple but I do not really know what is happening. I have a module like this: --------------------------------...
2005 Jun 04
0
[LLVMdev] "Value in symtab but has no slot number!!"
Hi Ricardo, Yes, its because you have an invalid module. You should run Module::verify before attempting to write the bytecode. This will pinpoint the problem for you. However, I think I know what's going on: you've left an object (a Value not a Type) in the symbol table that is not in the Module. Not quite sure how you do that, but I suppose its possible if you manipulated the symbol
2005 Jun 04
3
[LLVMdev] "Value in symtab but has no slot number!!"
Hello, I am receiving this error: assert(Slot != -1 && "Value in symtab but has no slot number!!"); While trying to generate a module at run time using LLVM classes. Specifically with an instance of StoreInst class. After I generate all the instructions, I try to save the Module to bytecode, but I receive that error in the method 'outputSymbolTable' Does anyone