From: Devang Patel Date: Thu, 4 Nov 2010 14:56:34 +0000 (+0000) Subject: Add getFile() to get DIFile of a DIType. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ab70ed41f344c04dabaf180c40f04827bc9c56b5;p=oota-llvm.git Add getFile() to get DIFile of a DIType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118247 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index d508890c50b..f0054fbf27b 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/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); }