forked from OSchip/llvm-project
Fix thinko in yesterday's fix.
Providing linkage name for function static variable confuses gdb, so don't do that. llvm-svn: 103779
This commit is contained in:
parent
30e3db2ba3
commit
ec2a9abd4a
|
@ -1575,7 +1575,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
|
|||
}
|
||||
llvm::StringRef DeclName = D->getName();
|
||||
llvm::StringRef LinkageName;
|
||||
if (D->getDeclContext() && isa<FunctionDecl>(D->getDeclContext()))
|
||||
if (D->getDeclContext() && !isa<FunctionDecl>(D->getDeclContext()))
|
||||
LinkageName = Var->getName();
|
||||
llvm::DIDescriptor DContext =
|
||||
getContextDescriptor(dyn_cast<Decl>(D->getDeclContext()), Unit);
|
||||
|
|
Loading…
Reference in New Issue