Add DIFile DISubprogram::getFile() const for DragonEgg.

llvm-svn: 175428
This commit is contained in:
David Blaikie 2013-02-18 07:54:55 +00:00
parent 136cd29e34
commit 0bf41d5263

View File

@ -570,6 +570,10 @@ namespace llvm {
return getFieldAs<DIFile>(6).getDirectory();
}
DIFile getFile() const {
return getFieldAs<DIFile>(6);
}
/// getScopeLineNumber - Get the beginning of the scope of the
/// function, not necessarily where the name of the program
/// starts.