<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Hello, <br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">I'm a little confused about the relationship between llvm::DIDescriptor and llvm::MDNode,  I find DIDescriptor has an attribute DbgNode, which is a MDNode, and they seem to share many similar functions...So I just want to in what kind of situation should we use one of them against another ?<br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Another more specific question: is there anyway(some member functions) that allows me to directly grab the corresponding debug info(metadata) of a certain item in the module(e.g. a global variable) with a pointer/ref to that item ?<br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">as an example:<br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">I have llvm::GlobalVariable gv1, I want to get the full debug info of gv1, how can I do that ?<br><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large">Thanks !<br></div>-- <br><div class="gmail_signature">Best regards<br><br><br>Hui Zhang<br></div>
</div>