aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-11-04 14:56:34 +0000
committerDevang Patel <dpatel@apple.com>2010-11-04 14:56:34 +0000
commitab70ed41f344c04dabaf180c40f04827bc9c56b5 (patch)
tree1624b65d1c69e8560962615330cfe497f468d24e
parent1e96bab329eb23e4ce8a0dc3cc6b33a3f03d15bf (diff)
downloadexternal_llvm-ab70ed41f344c04dabaf180c40f04827bc9c56b5.zip
external_llvm-ab70ed41f344c04dabaf180c40f04827bc9c56b5.tar.gz
external_llvm-ab70ed41f344c04dabaf180c40f04827bc9c56b5.tar.bz2
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
-rw-r--r--include/llvm/Analysis/DebugInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index d508890..f0054fb 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -238,6 +238,7 @@ namespace llvm {
return getFieldAs<DIFile>(3).getCompileUnit();
}
+ DIFile getFile() const { return getFieldAs<DIFile>(3); }
unsigned getLineNumber() const { return getUnsignedField(4); }
uint64_t getSizeInBits() const { return getUInt64Field(5); }
uint64_t getAlignInBits() const { return getUInt64Field(6); }