Yeah, It looks like I am doing exactly what's in Dwarf*.cpp files, yet I am getting blanks.<div><br></div><div>George<br><br><div class="gmail_quote">On Tue, Oct 2, 2012 at 2:10 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Oct 2, 2012 at 11:00 AM, George Baah <<a href="mailto:georgebaah@gmail.com">georgebaah@gmail.com</a>> wrote:<br>

> Hi Guys,<br>
>   How does one get the directory of the compilation unit in llvm?<br>
> I am using DICompileUnit but for some reason I am getting blanks<br>
> for the directory name. Here is my code ...<br>
><br>
> MDNode *MD = I.getMetadata("dbg");<br>
><br>
> DICompileUnit compileUnit(MD);<br>
><br>
> return compileUnit.getDirectory().str();<br>
><br>
<br>
</div></div>In general for these questions it's easier to look at how it's done in<br>
DwarfDebug.cpp and DwarfCompileUnit.cpp.<br>
<span class="HOEnZb"><font color="#888888"><br>
-eric<br>
</font></span></blockquote></div><br></div>