[LLVMdev] Loading IR function into module

Sara Elshobaky sara.elshobaky at gmail.com
Mon Feb 3 01:37:14 PST 2014


Hello,

I need to find a way to correctly add an extra function to an existing
module. Note that my function is in LLVM IR format.

I tried the 'LoadAssemblyInto(Module *M, const char *assembly).

 It loads the first basic block of the function correctly, but other basic
blocks are empty or not exist.

Please advice

 

Sara Elshobaky

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140203/a53f4961/attachment.html>


More information about the llvm-dev mailing list