diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-18 07:54:55 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-18 07:54:55 +0000 |
commit | 4293f4e4d935aa620ea2615323cf7ad016f6e346 (patch) | |
tree | 5f60971eadcd2ab8ab4eb11abd9125d7fec7c633 | |
parent | d4f92fd0d1f22af553db08416b476241e4372d9a (diff) |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 47b58e22e0..e77c86e663 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. |