diff options
author | Devang Patel <dpatel@apple.com> | 2010-08-10 20:22:49 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-08-10 20:22:49 +0000 |
commit | 6bf058c9aa59ec7893f9f3493daf9e6531699ce2 (patch) | |
tree | 67cced017d3f89570dbc6e1cb6ef9f4038f23ea5 /lib/Analysis/DebugInfo.cpp | |
parent | 9f014061799c01bd6eb5947f95a330ee99798efc (diff) |
Add missing argument. CreateCompositeTypeEx() users, please verify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 2bf87da5fa..cf2c2777e7 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -946,8 +946,8 @@ DICompositeType DIFactory::CreateCompositeTypeEx(unsigned Tag, unsigned Flags, DIType DerivedFrom, DIArray Elements, - unsigned RuntimeLang) { - + unsigned RuntimeLang, + MDNode *ContainingType) { Value *Elts[] = { GetTagConstant(Tag), Context, @@ -960,9 +960,10 @@ DICompositeType DIFactory::CreateCompositeTypeEx(unsigned Tag, ConstantInt::get(Type::getInt32Ty(VMContext), Flags), DerivedFrom, Elements, - ConstantInt::get(Type::getInt32Ty(VMContext), RuntimeLang) + ConstantInt::get(Type::getInt32Ty(VMContext), RuntimeLang), + ContainingType }; - MDNode *Node = MDNode::get(VMContext, &Elts[0], 12); + MDNode *Node = MDNode::get(VMContext, &Elts[0], 13); // Create a named metadata so that we do not lose this enum info. if (Tag == dwarf::DW_TAG_enumeration_type) { NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.enum"); |