diff options
author | Devang Patel <dpatel@apple.com> | 2010-04-29 17:48:37 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-04-29 17:48:37 +0000 |
commit | dfcd0661a1a45976e2f23d14dadc2d3411e4ef2c (patch) | |
tree | 6a87c1fb04e090ecd373f4960a9b7553015df225 /clang/lib/CodeGen | |
parent | 3b9ad93a353d7d571b3df847a516825ede0fd4e2 (diff) | |
download | bcm5719-llvm-dfcd0661a1a45976e2f23d14dadc2d3411e4ef2c.tar.gz bcm5719-llvm-dfcd0661a1a45976e2f23d14dadc2d3411e4ef2c.zip |
Use clang::VarDecl name instead of llvm::GlobalVariable name.
llvm::GLobalVariable name may not match user visibile name for function static variables.
llvm-svn: 102644
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 4991c0ff022..4963e73fe46 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1601,7 +1601,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var, T = CGM.getContext().getConstantArrayType(ET, ConstVal, ArrayType::Normal, 0); } - llvm::StringRef DeclName = Var->getName(); + llvm::StringRef DeclName = D->getName(); llvm::DIDescriptor DContext = getContextDescriptor(dyn_cast<Decl>(D->getDeclContext()), Unit); DebugFactory.CreateGlobalVariable(DContext, DeclName, |