diff options
author | Devang Patel <dpatel@apple.com> | 2010-08-11 23:17:54 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-08-11 23:17:54 +0000 |
commit | ebd53742c6ce51edb46dfd0a477c03d7770a1818 (patch) | |
tree | bdcdbcaa54a0bf0779395eff8343e68b033ecc31 /lib/Analysis/DebugInfo.cpp | |
parent | eaf1c98a7c38444d41d1c6dc2074736eec7d452f (diff) |
Even if a variable has constant value all the time, it is still a variable in gdb's eyes.
Tested by scope.exp in gdb testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index cf2c2777e7..1b9008cca7 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -1093,7 +1093,7 @@ DIFactory::CreateGlobalVariable(DIDescriptor Context, StringRef Name, unsigned LineNo, DIType Ty,bool isLocalToUnit, bool isDefinition, llvm::Constant *Val) { Value *Elts[] = { - GetTagConstant(dwarf::DW_TAG_constant), + GetTagConstant(dwarf::DW_TAG_variable), llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), Context, MDString::get(VMContext, Name), |