search for: moduledebuginfoprinterpass

Displaying 4 results from an estimated 4 matches for "moduledebuginfoprinterpass".

2010 Jul 14
2
[LLVMdev] DIFactory
Hi All, Is there any documentation on how to use DIFactory to generate basic debug info? It seems similar enough to IRBuilder but working with objects (rather than pointers) and that's raising some issues. Also, am I supposed to run the ModuleDebugInfoPrinterPass manually, or it gets printed automatically when I WriteBitcodeToFile? -- cheers, --renato http://systemcall.org/ Reclaim your digital rights, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm
2010 Jul 14
0
[LLVMdev] DIFactory
...anipulate debug info. The classes in this hierarchy are light weight enough to pass around as objects. It is on my wish list to enhance IRBuilder to cover functionality supported by DIFactory. If you're interested then patches are welcome in that direction! > Also, am I supposed to run the ModuleDebugInfoPrinterPass manually, or > it gets printed automatically when I WriteBitcodeToFile? Debug info is encoded in llvm IR as MDNodes. And all MDNodes from a Module, just like any other llvm values, are automatically emitted when the Module is written to a bitcode file. - Devang
2010 Jul 14
3
[LLVMdev] DIFactory
...r? new and assignment operators?). > Debug info is encoded in llvm IR as MDNodes. And all MDNodes from a > Module, just like any other llvm values, are automatically emitted > when the Module is written to a bitcode file. Weird, I wasn't getting the metadata before I started forcing ModuleDebugInfoPrinterPass via PassManager. Could be other changes I did, too, will check. -- cheers, --renato http://systemcall.org/ Reclaim your digital rights, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm
2010 Jul 14
0
[LLVMdev] DIFactory
...add them. >> Debug info is encoded in llvm IR as MDNodes. And all MDNodes from a >> Module, just like any other llvm values, are automatically emitted >> when the Module is written to a bitcode file. > > Weird, I wasn't getting the metadata before I started forcing > ModuleDebugInfoPrinterPass via PassManager. Could be other changes I > did, too, will check. Make sure at least one regular llvm value is using these MDNodes. MDNodes are like Constants, if nobody is using them then they disappear magically. - Devang