From 4293f4e4d935aa620ea2615323cf7ad016f6e346 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 18 Feb 2013 07:54:55 +0000 Subject: [PATCH] Add `DIFile DISubprogram::getFile() const` for DragonEgg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175428 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DebugInfo.h | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.34.1