diff options
author | Eric Christopher <echristo@gmail.com> | 2013-02-27 23:49:47 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-02-27 23:49:47 +0000 |
commit | 3f79b8c3744038476bb91af4896703f83b2b421a (patch) | |
tree | 82b904f8ea420867311551b03e4857b7557256fb /llvm/lib | |
parent | 10d35e906517bc4f74bd0665ed9b29c8813d2a56 (diff) | |
download | bcm5719-llvm-3f79b8c3744038476bb91af4896703f83b2b421a.tar.gz bcm5719-llvm-3f79b8c3744038476bb91af4896703f83b2b421a.zip |
Rework comment slightly and fix a few typos.
llvm-svn: 176223
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 00b91e70c79..d2e05255663 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1349,17 +1349,14 @@ void CompileUnit::createGlobalVariableDIE(const MDNode *N) { // Add linkage name. StringRef LinkageName = GV.getLinkageName(); if (!LinkageName.empty() && isGlobalVariable) { - // From dwarf-4: DIE to which DW_AT_linkage_name may apply include: - // TAG_commono_block, TAG_constant, TAG_entry_point, TAG_subporgram and - // TAG_variable. For static member variables, gcc 4.7 puts - // MIPS_linkage_name on the definition DIE only, but Darwin gdb needs - // MIPS_linkage_name at both places. - // Per discussion with Eric, for static member variables, we put - // MIPS_linkage_name on the definition DIE (TAG_variable) and conditionaly - // put MIPS_linkage_name on TAG_member when DarwinGDBCompat is on. + // From DWARF4: DIEs to which DW_AT_linkage_name may apply include: + // TAG_common_block, TAG_constant, TAG_entry_point, TAG_subprogram and + // TAG_variable. addString(IsStaticMember && VariableSpecDIE ? VariableSpecDIE : VariableDIE, dwarf::DW_AT_MIPS_linkage_name, getRealLinkageName(LinkageName)); + // In compatibility mode with older gdbs we put the linkage name on both + // the TAG_variable DIE and on the TAG_member DIE. if (IsStaticMember && VariableSpecDIE && DD->useDarwinGDBCompat()) addString(VariableDIE, dwarf::DW_AT_MIPS_linkage_name, getRealLinkageName(LinkageName)); |