diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-26 21:14:59 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-26 21:14:59 +0000 |
commit | f4b25d6d7b946ad77f47dfa510fcdd396ea6f3a8 (patch) | |
tree | e6ff7a5655035b3d776e7bdbf8c34ed1fb474d09 /llvm/lib/Analysis/DebugInfo.cpp | |
parent | ff234e09b9058b04bb1e699e3d4a82d2c8263439 (diff) | |
download | bcm5719-llvm-f4b25d6d7b946ad77f47dfa510fcdd396ea6f3a8.tar.gz bcm5719-llvm-f4b25d6d7b946ad77f47dfa510fcdd396ea6f3a8.zip |
Add extra element to composite type. This new element will be used to record c++ class that holds current class's vtable.
llvm-svn: 94586
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 8bed36ee526..bff193d52ed 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -794,7 +794,8 @@ DICompositeType DIFactory::CreateCompositeType(unsigned Tag, unsigned Flags, DIType DerivedFrom, DIArray Elements, - unsigned RuntimeLang) { + unsigned RuntimeLang, + MDNode *ContainingType) { Value *Elts[] = { GetTagConstant(Tag), @@ -808,9 +809,10 @@ DICompositeType DIFactory::CreateCompositeType(unsigned Tag, ConstantInt::get(Type::getInt32Ty(VMContext), Flags), DerivedFrom.getNode(), Elements.getNode(), - ConstantInt::get(Type::getInt32Ty(VMContext), RuntimeLang) + ConstantInt::get(Type::getInt32Ty(VMContext), RuntimeLang), + ContainingType }; - return DICompositeType(MDNode::get(VMContext, &Elts[0], 12)); + return DICompositeType(MDNode::get(VMContext, &Elts[0], 13)); } |