From a0148df273a6b978539993a1a2f0ef6f802facda Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 4 Nov 2010 14:56:34 +0000 Subject: [PATCH] Add getFile() to get DIFile of a DIType. llvm-svn: 118247 --- llvm/include/llvm/Analysis/DebugInfo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/include/llvm/Analysis/DebugInfo.h b/llvm/include/llvm/Analysis/DebugInfo.h index d508890c50b2..f0054fbf27b8 100644 --- a/llvm/include/llvm/Analysis/DebugInfo.h +++ b/llvm/include/llvm/Analysis/DebugInfo.h @@ -238,6 +238,7 @@ namespace llvm { return getFieldAs(3).getCompileUnit(); } + DIFile getFile() const { return getFieldAs(3); } unsigned getLineNumber() const { return getUnsignedField(4); } uint64_t getSizeInBits() const { return getUInt64Field(5); } uint64_t getAlignInBits() const { return getUInt64Field(6); }