projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e96bab
)
Add getFile() to get DIFile of a DIType.
author
Devang Patel
<dpatel@apple.com>
Thu, 4 Nov 2010 14:56:34 +0000
(14:56 +0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 4 Nov 2010 14:56:34 +0000
(14:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118247
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/DebugInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/DebugInfo.h
b/include/llvm/Analysis/DebugInfo.h
index d508890c50b23a0e83517aeb95e70c9ddf3df9c4..f0054fbf27b83043964402203d75ecf547c9f312 100644
(file)
--- 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); }