aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-02-26 22:35:53 +0000
committerManman Ren <mren@apple.com>2013-02-26 22:35:53 +0000
commitd61c840fcda18675c131bf86bb6d4498fcb6c272 (patch)
tree453655035d8a19cf5015507982fe6e9d992bf456 /lib/CodeGen
parentf15fe8195b0a42d0e950f3694c4d6ccd4034804a (diff)
downloadexternal_llvm-d61c840fcda18675c131bf86bb6d4498fcb6c272.zip
external_llvm-d61c840fcda18675c131bf86bb6d4498fcb6c272.tar.gz
external_llvm-d61c840fcda18675c131bf86bb6d4498fcb6c272.tar.bz2
Revert r176120 as it caused a failure at static-member.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index c023afd..93b00fb 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -1349,10 +1349,7 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) {
// Add linkage name.
StringRef LinkageName = GV.getLinkageName();
if (!LinkageName.empty() && isGlobalVariable)
- // For static member variables, AT_MIPS_linkage_name should be on
- // specification DIE to make old gdb work.
- addString(IsStaticMember && VariableSpecDIE ?
- VariableSpecDIE : VariableDIE, dwarf::DW_AT_MIPS_linkage_name,
+ addString(VariableDIE, dwarf::DW_AT_MIPS_linkage_name,
getRealLinkageName(LinkageName));
} else if (const ConstantInt *CI =
dyn_cast_or_null<ConstantInt>(GV.getConstant())) {