summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorJyoti Allur <jyoti.allur@samsung.com>2014-09-29 06:32:54 +0000
committerJyoti Allur <jyoti.allur@samsung.com>2014-09-29 06:32:54 +0000
commitb76b57fefd4396c15497219f428a7596bf966558 (patch)
tree27cf16aaeeb56b0d135ce726844ba9ddb7766da1 /clang/lib/CodeGen/CGDebugInfo.cpp
parent7d9f67f76e9482ffb773542e2075184463af02ea (diff)
downloadbcm5719-llvm-b76b57fefd4396c15497219f428a7596bf966558.tar.gz
bcm5719-llvm-b76b57fefd4396c15497219f428a7596bf966558.zip
Remove dead code from DIBuilder
llvm-svn: 218593
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp6
1 files changed, 3 insertions, 3 deletions
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<Decl>(VD->getDeclContext()));
- llvm::DIGlobalVariable GV = DBuilder.createStaticVariable(
+ llvm::DIGlobalVariable GV = DBuilder.createGlobalVariable(
DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty,
true, Init,
getOrCreateStaticDataMemberDeclarationOrNull(cast<VarDecl>(VD)));
OpenPOWER on IntegriCloud