aboutsummaryrefslogtreecommitdiffstats
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
commit4293f4e4d935aa620ea2615323cf7ad016f6e346 (patch)
tree5f60971eadcd2ab8ab4eb11abd9125d7fec7c633
parentd4f92fd0d1f22af553db08416b476241e4372d9a (diff)
downloadexternal_llvm-4293f4e4d935aa620ea2615323cf7ad016f6e346.zip
external_llvm-4293f4e4d935aa620ea2615323cf7ad016f6e346.tar.gz
external_llvm-4293f4e4d935aa620ea2615323cf7ad016f6e346.tar.bz2
Add `DIFile DISubprogram::getFile() const` for DragonEgg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175428 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/DebugInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h
index 47b58e2..e77c86e 100644
--- a/include/llvm/DebugInfo.h
+++ b/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.