Add `DIFile DISubprogram::getFile() const` for DragonEgg.
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 18 Feb 2013 07:54:55 +0000 (07:54 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 18 Feb 2013 07:54:55 +0000 (07:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175428 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo.h

index 47b58e22e0d39d71046b2c340dd8268793e82147..e77c86e6633ad3c0e3131fc8b40a481f6a7c447a 100644 (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.