From: Devang Patel Date: Tue, 10 Aug 2010 20:22:49 +0000 (+0000) Subject: Add missing argument. CreateCompositeTypeEx() users, please verify. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6bf058c9aa59ec7893f9f3493daf9e6531699ce2;p=oota-llvm.git Add missing argument. CreateCompositeTypeEx() users, please verify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110717 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index 0fcc6e4b67e..625ca8a8443 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -668,7 +668,8 @@ namespace llvm { unsigned Flags, DIType DerivedFrom, DIArray Elements, - unsigned RunTimeLang = 0); + unsigned RunTimeLang = 0, + MDNode *ContainingType = 0); /// CreateSubprogram - Create a new descriptor for the specified subprogram. /// See comments in DISubprogram for descriptions of these fields. diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 2bf87da5fa4..cf2c2777e7d 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");