summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-02-18 07:54:55 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-02-18 07:54:55 +0000
commit0a6d724913c1133adf82e3fa6ee93530652a5dce (patch)
treed86b7ffe9f5ca1d344b87953dca8c821deb91d58
parent176e72bd4883aa3d016322e99593aaf756d49be0 (diff)
downloadbcm5719-llvm-0a6d724913c1133adf82e3fa6ee93530652a5dce.tar.gz
bcm5719-llvm-0a6d724913c1133adf82e3fa6ee93530652a5dce.zip
Add `DIFile DISubprogram::getFile() const` for DragonEgg.
llvm-svn: 175428
-rw-r--r--llvm/include/llvm/DebugInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/DebugInfo.h b/llvm/include/llvm/DebugInfo.h
index 47b58e22e0d..e77c86e6633 100644
--- a/llvm/include/llvm/DebugInfo.h
+++ b/llvm/include/llvm/DebugInfo.h
@@ -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.
OpenPOWER on IntegriCloud