[cfe-dev] Debug Info Generation in Clang.

Sanjiv.Gupta at microchip.com Sanjiv.Gupta at microchip.com
Wed Apr 30 22:20:13 PDT 2008


> > I do not know how to retrieve last two pieces of information here.
> > DirectoryEntry.getName() gives relative path but not absolute.
> 
> Ok, use SourceMgr.getFileEntryForLoc(Loc), which returns a 
> FileEntry.   
> A FileEntry has a 'getName()' accessor for the file name, and 
> 'getDir()' which returns a directory entry.  DirectoryEntry 
> has 'getName()' to get the name of the dir.
> 

Chris,
I meant the same thing when I said "DirectoryEntry.getName()."
But the problem is that it doesn't give absolute path.
llvm-gcc keeps absolute path in compile_unit.

> > What is the API to retrive version string?
> 
> I would just set it to 'clang' or something.
> 
Fine.

- Sanjiv




More information about the cfe-dev mailing list