aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-08 22:52:49 +0000
committerChris Lattner <sabre@nondot.org>2010-03-08 22:52:49 +0000
commitdd8187a3e9509c670162b6ae8b7115723a37f01c (patch)
tree87efdefeaa0756d3be6d621f75541f0b8bb4c068 /lib/CodeGen/AsmPrinter
parent326861c4c823faedd5123f2acd5ad83f7a547e80 (diff)
downloadexternal_llvm-dd8187a3e9509c670162b6ae8b7115723a37f01c.zip
external_llvm-dd8187a3e9509c670162b6ae8b7115723a37f01c.tar.gz
external_llvm-dd8187a3e9509c670162b6ae8b7115723a37f01c.tar.bz2
eliminate a form of PrintLabelName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfPrinter.cpp13
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfPrinter.h1
3 files changed, 5 insertions, 11 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 602145b..633d586 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2969,7 +2969,7 @@ void DwarfDebug::emitDebugInlineInfo() {
else
O << MAI->getData64bitsDirective();
- PrintLabelName("label", LI->first); EOL("low_pc");
+ PrintLabelName(getDWLabel("label", LI->first)); EOL("low_pc");
}
}
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
index 6804628..fcef94e 100644
--- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
@@ -219,11 +219,6 @@ void DwarfPrinter::PrintLabelName(const MCSymbol *Label) const {
O << Label->getName();
}
-void DwarfPrinter::PrintLabelName(const char *Tag, unsigned Number) const {
- // FIXME: REMOVE.
- O << MAI->getPrivateGlobalPrefix() << Tag;
- if (Number) O << Number;
-}
void DwarfPrinter::PrintLabelName(const char *Tag, unsigned Number,
const char *Suffix) const {
// FIXME: REMOVE.
@@ -291,9 +286,9 @@ void DwarfPrinter::EmitDifference(const char *TagHi, unsigned NumberHi,
O << "\t.set\t";
PrintLabelName("set", SetCounter, Flavor);
O << ",";
- PrintLabelName(TagHi, NumberHi);
+ PrintLabelName(getDWLabel(TagHi, NumberHi));
O << "-";
- PrintLabelName(TagLo, NumberLo);
+ PrintLabelName(getDWLabel(TagLo, NumberLo));
O << "\n";
PrintRelDirective(IsSmall);
@@ -301,9 +296,9 @@ void DwarfPrinter::EmitDifference(const char *TagHi, unsigned NumberHi,
++SetCounter;
} else {
PrintRelDirective(IsSmall);
- PrintLabelName(TagHi, NumberHi);
+ PrintLabelName(getDWLabel(TagHi, NumberHi));
O << "-";
- PrintLabelName(TagLo, NumberLo);
+ PrintLabelName(getDWLabel(TagLo, NumberLo));
}
}
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.h b/lib/CodeGen/AsmPrinter/DwarfPrinter.h
index 3c9d555..c4b9497 100644
--- a/lib/CodeGen/AsmPrinter/DwarfPrinter.h
+++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.h
@@ -125,7 +125,6 @@ public:
/// PrintLabelName - Print label name in form used by Dwarf writer.
///
void PrintLabelName(const MCSymbol *Label) const;
- void PrintLabelName(const char *Tag, unsigned Number) const;
void PrintLabelName(const char *Tag, unsigned Number,
const char *Suffix) const;