From b76b57fefd4396c15497219f428a7596bf966558 Mon Sep 17 00:00:00 2001 From: Jyoti Allur Date: Mon, 29 Sep 2014 06:32:54 +0000 Subject: Remove dead code from DIBuilder llvm-svn: 218593 --- clang/lib/CodeGen/CGDebugInfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp') diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 16373776015..1d330690e25 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -3149,7 +3149,7 @@ CGDebugInfo::CollectAnonRecordDecls(const RecordDecl *RD, llvm::DIFile Unit, continue; } // Use VarDecl's Tag, Scope and Line number. - GV = DBuilder.createStaticVariable(DContext, FieldName, LinkageName, Unit, + GV = DBuilder.createGlobalVariable(DContext, FieldName, LinkageName, Unit, LineNo, FieldTy, Var->hasInternalLinkage(), Var, llvm::DIDerivedType()); @@ -3201,7 +3201,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var, assert(RD->isAnonymousStructOrUnion() && "unnamed non-anonymous struct or union?"); GV = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext); } else { - GV = DBuilder.createStaticVariable( + GV = DBuilder.createGlobalVariable( DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), Var->hasInternalLinkage(), Var, getOrCreateStaticDataMemberDeclarationOrNull(D)); @@ -3234,7 +3234,7 @@ void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD, return; llvm::DIDescriptor DContext = getContextDescriptor(dyn_cast(VD->getDeclContext())); - llvm::DIGlobalVariable GV = DBuilder.createStaticVariable( + llvm::DIGlobalVariable GV = DBuilder.createGlobalVariable( DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty, true, Init, getOrCreateStaticDataMemberDeclarationOrNull(cast(VD))); -- cgit v1.2.3