diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 47b58e22e0d..e77c86e6633 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -570,6 +570,10 @@ namespace llvm { return getFieldAs(6).getDirectory(); } + DIFile getFile() const { + return getFieldAs(6); + } + /// getScopeLineNumber - Get the beginning of the scope of the /// function, not necessarily where the name of the program /// starts.