r218593 - Remove dead code from DIBuilder
Jyoti Allur
jyoti.allur at samsung.com
Sun Sep 28 23:32:54 PDT 2014
Author: jyoti.allur
Date: Mon Sep 29 01:32:54 2014
New Revision: 218593
URL: http://llvm.org/viewvc/llvm-project?rev=218593&view=rev
Log:
Remove dead code from DIBuilder
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=218593&r1=218592&r2=218593&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Sep 29 01:32:54 2014
@@ -3149,7 +3149,7 @@ CGDebugInfo::CollectAnonRecordDecls(cons
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(llv
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(con
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)));
More information about the cfe-commits
mailing list