[LLVMdev] Accessing metadata & creating DIVariable

Devang Patel dpatel at apple.com
Mon Mar 28 16:17:52 PDT 2011


On Mar 28, 2011, at 2:36 PM, Vedavyas Duggirala wrote:

> What is the right way to get a handle on the MDNode of the CompileUnit
> in a Module ?
> 

The CompileUnit is an instance of DICompileUnit, which is just a wrapper around a MDNode. See DebugInfo.h

> I can't figure out what is wrong, there are no obvious duplicate
> entries. The original CU entry got replaced by the CU I created  with
> DIBuilder. Not sure, if changing the CU is the cause of error.

How did you create a CU ?
-
Devang

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


More information about the llvm-dev mailing list