[LLVMdev] How to insert metadata in llvm IR?

Eric Christopher echristo at apple.com
Tue Aug 14 14:08:02 PDT 2012


On Aug 1, 2012, at 4:49 AM, Kevin Fang <keigi1203 at gmail.com> wrote:

> Can you tell me a right way to insert this MD? 

Why would you do this in this way? Why not just do it at the time you create the module in the first place? Your summation of how the debug information is supposed to be added via the classes also isn't quite correct. I'd look into how clang emits debug information as a guideline.

-eric



More information about the llvm-dev mailing list