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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175428 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2013-02-18 07:54:55 +00:00
parent d4f92fd0d1
commit 4293f4e4d9

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.