Add `DIFile DISubprogram::getFile() const` for DragonEgg.
[oota-llvm.git] / 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.