diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-08 23:02:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-08 23:02:59 +0000 |
commit | 449a9ff14b9c757aa5a43ad552126d7096760319 (patch) | |
tree | bef66b1d631a05620454dc19328253fa55c5171a /llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | |
parent | 0bfbd9b68c2cab4ece606ad6971cdcc0f2ed1847 (diff) | |
download | bcm5719-llvm-449a9ff14b9c757aa5a43ad552126d7096760319.tar.gz bcm5719-llvm-449a9ff14b9c757aa5a43ad552126d7096760319.zip |
Remove a version of EmitDifference.
llvm-svn: 98002
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp index fcef94eb64c..23b2158272f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp @@ -276,32 +276,6 @@ void DwarfPrinter::EmitDifference(const MCSymbol *TagHi, const MCSymbol *TagLo, } } -/// EmitDifference - Emit the difference between two labels. If this assembler -/// supports .set, we emit a .set of a temporary and then use it in the .word. -void DwarfPrinter::EmitDifference(const char *TagHi, unsigned NumberHi, - const char *TagLo, unsigned NumberLo, - bool IsSmall) { - if (MAI->hasSetDirective()) { - // FIXME: switch to OutStreamer.EmitAssignment. - O << "\t.set\t"; - PrintLabelName("set", SetCounter, Flavor); - O << ","; - PrintLabelName(getDWLabel(TagHi, NumberHi)); - O << "-"; - PrintLabelName(getDWLabel(TagLo, NumberLo)); - O << "\n"; - - PrintRelDirective(IsSmall); - PrintLabelName("set", SetCounter, Flavor); - ++SetCounter; - } else { - PrintRelDirective(IsSmall); - PrintLabelName(getDWLabel(TagHi, NumberHi)); - O << "-"; - PrintLabelName(getDWLabel(TagLo, NumberLo)); - } -} - void DwarfPrinter::EmitSectionOffset(const MCSymbol *Label, const MCSymbol *Section, bool IsSmall, bool isEH, @@ -367,7 +341,8 @@ void DwarfPrinter::EmitFrameMoves(const char *BaseLabel, unsigned BaseLabelID, // Advance row if new location. if (BaseLabel && LabelID && (BaseLabelID != LabelID || !IsLocal)) { EmitCFAByte(dwarf::DW_CFA_advance_loc4); - EmitDifference("label", LabelID, BaseLabel, BaseLabelID, true); + EmitDifference(getDWLabel("label", LabelID), + getDWLabel(BaseLabel, BaseLabelID), true); Asm->O << '\n'; BaseLabelID = LabelID; |