[LLVMdev] question
George Baah
georgebaah at gmail.com
Tue Oct 2 11:00:36 PDT 2012
Hi Guys,
How does one get the directory of the compilation unit in llvm?
I am using DICompileUnit but for some reason I am getting blanks
for the directory name. Here is my code ...
MDNode *MD = I.getMetadata("dbg");
DICompileUnit compileUnit(MD);
*return* compileUnit.getDirectory().str();
Thanks
George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121002/fbb4351c/attachment.html>
More information about the llvm-dev
mailing list