aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2009-09-01 16:43:35 +0000
committerJim Grosbach <grosbach@apple.com>2009-09-01 16:43:35 +0000
commita01d34676fa45ab341d18cf9ec1e39cc5979898f (patch)
tree048998a74859cf6a85bfd6242e51bd111f899b83 /lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
parentc142bb294b689b5eb4d842dfe18ea755bc65c79f (diff)
Simply LSDA lable emission to use a direct special-case output instead of
EmitLabel() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfPrinter.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
index 60ff2c57cd..20b959b914 100644
--- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
@@ -43,27 +43,21 @@ void Dwarf::PrintRelDirective(bool Force32Bit, bool isInSection) const {
/// PrintLabelName - Print label name in form used by Dwarf writer.
///
-void Dwarf::PrintLabelName(const char *Tag, unsigned Number,
- bool ForcePrivate) const {
- if (ForcePrivate)
- O << MAI->getPrivateGlobalPrefix();
- O << Tag;
+void Dwarf::PrintLabelName(const char *Tag, unsigned Number) const {
+ O << MAI->getPrivateGlobalPrefix() << Tag;
if (Number) O << Number;
}
void Dwarf::PrintLabelName(const char *Tag, unsigned Number,
- const char *Suffix, bool ForcePrivate) const {
- if (ForcePrivate)
- O << MAI->getPrivateGlobalPrefix();
- O << Tag;
+ const char *Suffix) const {
+ O << MAI->getPrivateGlobalPrefix() << Tag;
if (Number) O << Number;
O << Suffix;
}
/// EmitLabel - Emit location label for internal use by Dwarf.
///
-void Dwarf::EmitLabel(const char *Tag, unsigned Number,
- bool ForcePrivate) const {
- PrintLabelName(Tag, Number, ForcePrivate);
+void Dwarf::EmitLabel(const char *Tag, unsigned Number) const {
+ PrintLabelName(Tag, Number);
O << ":\n";
}