aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-26 21:14:59 +0000
committerDevang Patel <dpatel@apple.com>2010-01-26 21:14:59 +0000
commit0fd7f9d7ffea48aa9c4965132ade33cf28f973ea (patch)
tree549bfc30a4d35c5e92f15df05e3cff74247323de /include/llvm/Analysis
parentcee63322eaccc2f1067bdf5eab506e440f867da1 (diff)
downloadexternal_llvm-0fd7f9d7ffea48aa9c4965132ade33cf28f973ea.zip
external_llvm-0fd7f9d7ffea48aa9c4965132ade33cf28f973ea.tar.gz
external_llvm-0fd7f9d7ffea48aa9c4965132ade33cf28f973ea.tar.bz2
Add extra element to composite type. This new element will be used to record c++ class that holds current class's vtable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/DebugInfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index 150d3ee..0227b2c 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -298,6 +298,9 @@ namespace llvm {
DIArray getTypeArray() const { return getFieldAs<DIArray>(10); }
unsigned getRunTimeLang() const { return getUnsignedField(11); }
+ DICompositeType getContainingType() const {
+ return getFieldAs<DICompositeType>(12);
+ }
/// Verify - Verify that a composite type descriptor is well formed.
bool Verify() const;
@@ -567,7 +570,8 @@ namespace llvm {
uint64_t OffsetInBits, unsigned Flags,
DIType DerivedFrom,
DIArray Elements,
- unsigned RunTimeLang = 0);
+ unsigned RunTimeLang = 0,
+ MDNode *ContainingType = 0);
/// CreateCompositeType - Create a composite type like array, struct, etc.
DICompositeType CreateCompositeTypeEx(unsigned Tag, DIDescriptor Context,