summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-20 18:26:30 +0000
committerDevang Patel <dpatel@apple.com>2009-10-20 18:26:30 +0000
commite4f2b2a8ac82d023f6b4bf7a2752009955476132 (patch)
tree7ff550c8a63a409fd48722b0570d334f22a3a375 /clang/lib/CodeGen/CGDebugInfo.cpp
parent3d9d78463cdf7d325d25c0090a967598d120837b (diff)
downloadbcm5719-llvm-e4f2b2a8ac82d023f6b4bf7a2752009955476132.tar.gz
bcm5719-llvm-e4f2b2a8ac82d023f6b4bf7a2752009955476132.zip
Encode global variable name in debug info.
llvm-svn: 84653
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 0e7318c6b77..9bd9444703e 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1364,7 +1364,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
}
DebugFactory.CreateGlobalVariable(getContext(Decl, Unit),
- Name, Name, "", Unit, LineNo,
+ Name, Name, Name, Unit, LineNo,
getOrCreateType(T, Unit),
Var->hasInternalLinkage(),
true/*definition*/, Var);
@@ -1394,7 +1394,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
ArrayType::Normal, 0);
}
- DebugFactory.CreateGlobalVariable(Unit, Name, Name, "", Unit, LineNo,
+ DebugFactory.CreateGlobalVariable(Unit, Name, Name, Name, Unit, LineNo,
getOrCreateType(T, Unit),
Var->hasInternalLinkage(),
true/*definition*/, Var);
OpenPOWER on IntegriCloud