summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitfe494749e4d8d06a5a0f03ccaae878b7f34611a6 (patch)
treeb56c8088d72f02eee488b0b3cf239a7cd4ef8a34 /llvm/lib/CodeGen
parent05e35566c8ef61ba175097077a8d6e6b4948f044 (diff)
downloadbcm5719-llvm-fe494749e4d8d06a5a0f03ccaae878b7f34611a6.tar.gz
bcm5719-llvm-fe494749e4d8d06a5a0f03ccaae878b7f34611a6.zip
Revert r176120 as it caused a failure at static-member.cpp
llvm-svn: 176129
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index c023afdf33c..93b00fb5229 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/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())) {
OpenPOWER on IntegriCloud