mc'ize EmitLabel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-03-08 22:44:40 +00:00
parent 4faf59af82
commit f829eef8fa
4 changed files with 52 additions and 69 deletions

View File

@ -1845,14 +1845,14 @@ void DwarfDebug::endModule() {
// Standard sections final addresses. // Standard sections final addresses.
Asm->OutStreamer.SwitchSection(Asm->getObjFileLowering().getTextSection()); Asm->OutStreamer.SwitchSection(Asm->getObjFileLowering().getTextSection());
EmitLabel("text_end", 0); Asm->OutStreamer.EmitLabel(getTempLabel("text_end"));
Asm->OutStreamer.SwitchSection(Asm->getObjFileLowering().getDataSection()); Asm->OutStreamer.SwitchSection(Asm->getObjFileLowering().getDataSection());
EmitLabel("data_end", 0); Asm->OutStreamer.EmitLabel(getTempLabel("data_end"));
// End text sections. // End text sections.
for (unsigned i = 1, N = SectionMap.size(); i <= N; ++i) { for (unsigned i = 1, N = SectionMap.size(); i <= N; ++i) {
Asm->OutStreamer.SwitchSection(SectionMap[i]); Asm->OutStreamer.SwitchSection(SectionMap[i]);
EmitLabel("section_end", i); Asm->OutStreamer.EmitLabel(getDWLabel("section_end", i));
} }
// Emit common frame information. // Emit common frame information.
@ -2112,7 +2112,7 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
collectVariableInfo(); collectVariableInfo();
// Assumes in correct section after the entry point. // Assumes in correct section after the entry point.
EmitLabel("func_begin", ++SubprogramCount); Asm->OutStreamer.EmitLabel(getDWLabel("func_begin", ++SubprogramCount));
// Emit label for the implicitly defined dbg.stoppoint at the start of the // Emit label for the implicitly defined dbg.stoppoint at the start of the
// function. // function.
@ -2148,7 +2148,7 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
if (CurrentFnDbgScope) { if (CurrentFnDbgScope) {
// Define end label for subprogram. // Define end label for subprogram.
EmitLabel("func_end", SubprogramCount); Asm->OutStreamer.EmitLabel(getDWLabel("func_end", SubprogramCount));
// Get function line info. // Get function line info.
if (!Lines.empty()) { if (!Lines.empty()) {
@ -2320,38 +2320,38 @@ void DwarfDebug::emitInitial() {
// Dwarf sections base addresses. // Dwarf sections base addresses.
if (MAI->doesDwarfRequireFrameSection()) { if (MAI->doesDwarfRequireFrameSection()) {
Asm->OutStreamer.SwitchSection(TLOF.getDwarfFrameSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfFrameSection());
EmitLabel("section_debug_frame", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_debug_frame"));
} }
Asm->OutStreamer.SwitchSection(TLOF.getDwarfInfoSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfInfoSection());
EmitLabel("section_info", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_info"));
Asm->OutStreamer.SwitchSection(TLOF.getDwarfAbbrevSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfAbbrevSection());
EmitLabel("section_abbrev", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_abbrev"));
Asm->OutStreamer.SwitchSection(TLOF.getDwarfARangesSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfARangesSection());
EmitLabel("section_aranges", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_aranges"));
if (const MCSection *LineInfoDirective = TLOF.getDwarfMacroInfoSection()) { if (const MCSection *LineInfoDirective = TLOF.getDwarfMacroInfoSection()) {
Asm->OutStreamer.SwitchSection(LineInfoDirective); Asm->OutStreamer.SwitchSection(LineInfoDirective);
EmitLabel("section_macinfo", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_macinfo"));
} }
Asm->OutStreamer.SwitchSection(TLOF.getDwarfLineSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfLineSection());
EmitLabel("section_line", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_line"));
Asm->OutStreamer.SwitchSection(TLOF.getDwarfLocSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfLocSection());
EmitLabel("section_loc", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_loc"));
Asm->OutStreamer.SwitchSection(TLOF.getDwarfPubNamesSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfPubNamesSection());
EmitLabel("section_pubnames", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_pubnames"));
Asm->OutStreamer.SwitchSection(TLOF.getDwarfPubTypesSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfPubTypesSection());
EmitLabel("section_pubtypes", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_pubtypes"));
Asm->OutStreamer.SwitchSection(TLOF.getDwarfStrSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfStrSection());
EmitLabel("section_str", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_str"));
Asm->OutStreamer.SwitchSection(TLOF.getDwarfRangesSection()); Asm->OutStreamer.SwitchSection(TLOF.getDwarfRangesSection());
EmitLabel("section_ranges", 0); Asm->OutStreamer.EmitLabel(getTempLabel("section_ranges"));
Asm->OutStreamer.SwitchSection(TLOF.getTextSection()); Asm->OutStreamer.SwitchSection(TLOF.getTextSection());
EmitLabel("text_begin", 0); Asm->OutStreamer.EmitLabel(getTempLabel("text_begin"));
Asm->OutStreamer.SwitchSection(TLOF.getDataSection()); Asm->OutStreamer.SwitchSection(TLOF.getDataSection());
EmitLabel("data_begin", 0); Asm->OutStreamer.EmitLabel(getTempLabel("data_begin"));
} }
/// emitDIE - Recusively Emits a debug information entry. /// emitDIE - Recusively Emits a debug information entry.
@ -2422,7 +2422,7 @@ void DwarfDebug::emitDebugInfo() {
DIE *Die = ModuleCU->getCUDie(); DIE *Die = ModuleCU->getCUDie();
// Emit the compile units header. // Emit the compile units header.
EmitLabel("info_begin", ModuleCU->getID()); Asm->OutStreamer.EmitLabel(getDWLabel("info_begin", ModuleCU->getID()));
// Emit size of content not including length itself // Emit size of content not including length itself
unsigned ContentSize = Die->getSize() + unsigned ContentSize = Die->getSize() +
@ -2444,7 +2444,7 @@ void DwarfDebug::emitDebugInfo() {
Asm->EmitInt8(0); EOL("Extra Pad For GDB"); Asm->EmitInt8(0); EOL("Extra Pad For GDB");
Asm->EmitInt8(0); EOL("Extra Pad For GDB"); Asm->EmitInt8(0); EOL("Extra Pad For GDB");
Asm->EmitInt8(0); EOL("Extra Pad For GDB"); Asm->EmitInt8(0); EOL("Extra Pad For GDB");
EmitLabel("info_end", ModuleCU->getID()); Asm->OutStreamer.EmitLabel(getDWLabel("info_end", ModuleCU->getID()));
Asm->O << '\n'; Asm->O << '\n';
} }
@ -2457,7 +2457,7 @@ void DwarfDebug::emitAbbreviations() const {
Asm->OutStreamer.SwitchSection( Asm->OutStreamer.SwitchSection(
Asm->getObjFileLowering().getDwarfAbbrevSection()); Asm->getObjFileLowering().getDwarfAbbrevSection());
EmitLabel("abbrev_begin", 0); Asm->OutStreamer.EmitLabel(getTempLabel("abbrev_begin"));
// For each abbrevation. // For each abbrevation.
for (unsigned i = 0, N = Abbreviations.size(); i < N; ++i) { for (unsigned i = 0, N = Abbreviations.size(); i < N; ++i) {
@ -2475,8 +2475,7 @@ void DwarfDebug::emitAbbreviations() const {
// Mark end of abbreviations. // Mark end of abbreviations.
EmitULEB128(0, "EOM(3)"); EmitULEB128(0, "EOM(3)");
EmitLabel("abbrev_end", 0); Asm->OutStreamer.EmitLabel(getTempLabel("abbrev_end"));
Asm->O << '\n';
} }
} }
@ -2514,15 +2513,16 @@ void DwarfDebug::emitDebugLines() {
Asm->getObjFileLowering().getDwarfLineSection()); Asm->getObjFileLowering().getDwarfLineSection());
// Construct the section header. // Construct the section header.
EmitDifference("line_end", 0, "line_begin", 0, true); EmitDifference(getTempLabel("line_end"), getTempLabel("line_begin"), true);
EOL("Length of Source Line Info"); EOL("Length of Source Line Info");
EmitLabel("line_begin", 0); Asm->OutStreamer.EmitLabel(getTempLabel("line_begin"));
Asm->EmitInt16(dwarf::DWARF_VERSION); EOL("DWARF version number"); Asm->EmitInt16(dwarf::DWARF_VERSION); EOL("DWARF version number");
EmitDifference("line_prolog_end", 0, "line_prolog_begin", 0, true); EmitDifference(getTempLabel("line_prolog_end"),
getTempLabel("line_prolog_begin"), true);
EOL("Prolog Length"); EOL("Prolog Length");
EmitLabel("line_prolog_begin", 0); Asm->OutStreamer.EmitLabel(getTempLabel("line_prolog_begin"));
Asm->EmitInt8(1); EOL("Minimum Instruction Length"); Asm->EmitInt8(1); EOL("Minimum Instruction Length");
Asm->EmitInt8(1); EOL("Default is_stmt_start flag"); Asm->EmitInt8(1); EOL("Default is_stmt_start flag");
@ -2565,7 +2565,7 @@ void DwarfDebug::emitDebugLines() {
Asm->EmitInt8(0); EOL("End of files"); Asm->EmitInt8(0); EOL("End of files");
EmitLabel("line_prolog_end", 0); Asm->OutStreamer.EmitLabel(getTempLabel("line_prolog_end"));
// A sequence for each text section. // A sequence for each text section.
unsigned SecSrcLinesSize = SectionSourceLines.size(); unsigned SecSrcLinesSize = SectionSourceLines.size();
@ -2652,8 +2652,7 @@ void DwarfDebug::emitDebugLines() {
// put into it, emit an empty table. // put into it, emit an empty table.
emitEndOfLineMatrix(1); emitEndOfLineMatrix(1);
EmitLabel("line_end", 0); Asm->OutStreamer.EmitLabel(getTempLabel("line_end"));
Asm->O << '\n';
} }
/// emitCommonDebugFrame - Emit common frame info into a debug frame section. /// emitCommonDebugFrame - Emit common frame info into a debug frame section.
@ -2671,12 +2670,12 @@ void DwarfDebug::emitCommonDebugFrame() {
Asm->OutStreamer.SwitchSection( Asm->OutStreamer.SwitchSection(
Asm->getObjFileLowering().getDwarfFrameSection()); Asm->getObjFileLowering().getDwarfFrameSection());
EmitLabel("debug_frame_common", 0); Asm->OutStreamer.EmitLabel(getTempLabel("debug_frame_common"));
EmitDifference("debug_frame_common_end", 0, EmitDifference("debug_frame_common_end", 0,
"debug_frame_common_begin", 0, true); "debug_frame_common_begin", 0, true);
EOL("Length of Common Information Entry"); EOL("Length of Common Information Entry");
EmitLabel("debug_frame_common_begin", 0); Asm->OutStreamer.EmitLabel(getTempLabel("debug_frame_common_begin"));
Asm->EmitInt32((int)dwarf::DW_CIE_ID); Asm->EmitInt32((int)dwarf::DW_CIE_ID);
EOL("CIE Identifier Tag"); EOL("CIE Identifier Tag");
Asm->EmitInt8(dwarf::DW_CIE_VERSION); Asm->EmitInt8(dwarf::DW_CIE_VERSION);
@ -2694,8 +2693,7 @@ void DwarfDebug::emitCommonDebugFrame() {
EmitFrameMoves(NULL, 0, Moves, false); EmitFrameMoves(NULL, 0, Moves, false);
Asm->EmitAlignment(2, 0, 0, false); Asm->EmitAlignment(2, 0, 0, false);
EmitLabel("debug_frame_common_end", 0); Asm->OutStreamer.EmitLabel(getTempLabel("debug_frame_common_end"));
Asm->O << '\n';
} }
/// emitFunctionDebugFrame - Emit per function frame info into a debug frame /// emitFunctionDebugFrame - Emit per function frame info into a debug frame
@ -2713,7 +2711,8 @@ DwarfDebug::emitFunctionDebugFrame(const FunctionDebugFrameInfo&DebugFrameInfo){
"debug_frame_begin", DebugFrameInfo.Number, true); "debug_frame_begin", DebugFrameInfo.Number, true);
EOL("Length of Frame Information Entry"); EOL("Length of Frame Information Entry");
EmitLabel("debug_frame_begin", DebugFrameInfo.Number); Asm->OutStreamer.EmitLabel(getDWLabel("debug_frame_begin",
DebugFrameInfo.Number));
EmitSectionOffset(getTempLabel("debug_frame_common"), EmitSectionOffset(getTempLabel("debug_frame_common"),
getTempLabel("section_debug_frame"), true, false); getTempLabel("section_debug_frame"), true, false);
@ -2729,7 +2728,8 @@ DwarfDebug::emitFunctionDebugFrame(const FunctionDebugFrameInfo&DebugFrameInfo){
false); false);
Asm->EmitAlignment(2, 0, 0, false); Asm->EmitAlignment(2, 0, 0, false);
EmitLabel("debug_frame_end", DebugFrameInfo.Number); Asm->OutStreamer.EmitLabel(getDWLabel("debug_frame_end",
DebugFrameInfo.Number));
Asm->O << '\n'; Asm->O << '\n';
} }
@ -2744,7 +2744,7 @@ void DwarfDebug::emitDebugPubNames() {
"pubnames_begin", ModuleCU->getID(), true); "pubnames_begin", ModuleCU->getID(), true);
EOL("Length of Public Names Info"); EOL("Length of Public Names Info");
EmitLabel("pubnames_begin", ModuleCU->getID()); Asm->OutStreamer.EmitLabel(getDWLabel("pubnames_begin", ModuleCU->getID()));
Asm->EmitInt16(dwarf::DWARF_VERSION); EOL("DWARF Version"); Asm->EmitInt16(dwarf::DWARF_VERSION); EOL("DWARF Version");
@ -2771,8 +2771,7 @@ void DwarfDebug::emitDebugPubNames() {
} }
Asm->EmitInt32(0); EOL("End Mark"); Asm->EmitInt32(0); EOL("End Mark");
EmitLabel("pubnames_end", ModuleCU->getID()); Asm->OutStreamer.EmitLabel(getDWLabel("pubnames_end", ModuleCU->getID()));
Asm->O << '\n';
} }
void DwarfDebug::emitDebugPubTypes() { void DwarfDebug::emitDebugPubTypes() {
@ -2783,7 +2782,7 @@ void DwarfDebug::emitDebugPubTypes() {
"pubtypes_begin", ModuleCU->getID(), true); "pubtypes_begin", ModuleCU->getID(), true);
EOL("Length of Public Types Info"); EOL("Length of Public Types Info");
EmitLabel("pubtypes_begin", ModuleCU->getID()); Asm->OutStreamer.EmitLabel(getDWLabel("pubtypes_begin", ModuleCU->getID()));
if (Asm->VerboseAsm) Asm->OutStreamer.AddComment("DWARF Version"); if (Asm->VerboseAsm) Asm->OutStreamer.AddComment("DWARF Version");
Asm->EmitInt16(dwarf::DWARF_VERSION); Asm->EmitInt16(dwarf::DWARF_VERSION);
@ -2810,8 +2809,7 @@ void DwarfDebug::emitDebugPubTypes() {
} }
Asm->EmitInt32(0); EOL("End Mark"); Asm->EmitInt32(0); EOL("End Mark");
EmitLabel("pubtypes_end", ModuleCU->getID()); Asm->OutStreamer.EmitLabel(getDWLabel("pubtypes_end", ModuleCU->getID()));
Asm->O << '\n';
} }
/// emitDebugStr - Emit visible names into a debug str section. /// emitDebugStr - Emit visible names into a debug str section.
@ -2827,7 +2825,7 @@ void DwarfDebug::emitDebugStr() {
for (unsigned StringID = 1, N = StringPool.size(); for (unsigned StringID = 1, N = StringPool.size();
StringID <= N; ++StringID) { StringID <= N; ++StringID) {
// Emit a label for reference from debug information entries. // Emit a label for reference from debug information entries.
EmitLabel("string", StringID); Asm->OutStreamer.EmitLabel(getDWLabel("string", StringID));
// Emit the string itself. // Emit the string itself.
const std::string &String = StringPool[StringID]; const std::string &String = StringPool[StringID];
@ -2931,7 +2929,7 @@ void DwarfDebug::emitDebugInlineInfo() {
"debug_inlined_begin", 1, true); "debug_inlined_begin", 1, true);
EOL("Length of Debug Inlined Information Entry"); EOL("Length of Debug Inlined Information Entry");
EmitLabel("debug_inlined_begin", 1); Asm->OutStreamer.EmitLabel(getDWLabel("debug_inlined_begin", 1));
Asm->EmitInt16(dwarf::DWARF_VERSION); EOL("Dwarf Version"); Asm->EmitInt16(dwarf::DWARF_VERSION); EOL("Dwarf Version");
Asm->EmitInt8(TD->getPointerSize()); EOL("Address Size (in bytes)"); Asm->EmitInt8(TD->getPointerSize()); EOL("Address Size (in bytes)");
@ -2975,6 +2973,5 @@ void DwarfDebug::emitDebugInlineInfo() {
} }
} }
EmitLabel("debug_inlined_end", 1); Asm->OutStreamer.EmitLabel(getDWLabel("debug_inlined_end", 1));
Asm->O << '\n';
} }

View File

@ -88,10 +88,10 @@ void DwarfException::EmitCIE(const Function *PersonalityFn, unsigned Index) {
O << MAI->getPrivateGlobalPrefix(); O << MAI->getPrivateGlobalPrefix();
O << "EH_frame" << Index << ":\n"; O << "EH_frame" << Index << ":\n";
EmitLabel("section_eh_frame", Index); Asm->OutStreamer.EmitLabel(getDWLabel("section_eh_frame", Index));
// Define base labels. // Define base labels.
EmitLabel("eh_frame_common", Index); Asm->OutStreamer.EmitLabel(getDWLabel("eh_frame_common", Index));
// Define the eh frame length. // Define the eh frame length.
EmitDifference("eh_frame_common_end", Index, EmitDifference("eh_frame_common_end", Index,
@ -99,7 +99,7 @@ void DwarfException::EmitCIE(const Function *PersonalityFn, unsigned Index) {
EOL("Length of Common Information Entry"); EOL("Length of Common Information Entry");
// EH frame header. // EH frame header.
EmitLabel("eh_frame_common_begin", Index); Asm->OutStreamer.EmitLabel(getDWLabel("eh_frame_common_begin", Index));
if (Asm->VerboseAsm) Asm->OutStreamer.AddComment("CIE Identifier Tag"); if (Asm->VerboseAsm) Asm->OutStreamer.AddComment("CIE Identifier Tag");
Asm->OutStreamer.EmitIntValue(0, 4/*size*/, 0/*addrspace*/); Asm->OutStreamer.EmitIntValue(0, 4/*size*/, 0/*addrspace*/);
if (Asm->VerboseAsm) Asm->OutStreamer.AddComment("DW_CIE_VERSION"); if (Asm->VerboseAsm) Asm->OutStreamer.AddComment("DW_CIE_VERSION");
@ -171,8 +171,7 @@ void DwarfException::EmitCIE(const Function *PersonalityFn, unsigned Index) {
// be 8-byte on 64-bit targets to match what gcc does. Otherwise you get // be 8-byte on 64-bit targets to match what gcc does. Otherwise you get
// holes which confuse readers of eh_frame. // holes which confuse readers of eh_frame.
Asm->EmitAlignment(TD->getPointerSize() == 4 ? 2 : 3, 0, 0, false); Asm->EmitAlignment(TD->getPointerSize() == 4 ? 2 : 3, 0, 0, false);
EmitLabel("eh_frame_common_end", Index); Asm->OutStreamer.EmitLabel(getDWLabel("eh_frame_common_end", Index));
Asm->O << '\n';
} }
/// EmitFDE - Emit the Frame Description Entry (FDE) for the function. /// EmitFDE - Emit the Frame Description Entry (FDE) for the function.
@ -228,7 +227,7 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) {
true); true);
EOL("Length of Frame Information Entry"); EOL("Length of Frame Information Entry");
EmitLabel("eh_frame_begin", EHFrameInfo.Number); Asm->OutStreamer.EmitLabel(getDWLabel("eh_frame_begin",EHFrameInfo.Number));
EmitSectionOffset(getDWLabel("eh_frame_begin", EHFrameInfo.Number), EmitSectionOffset(getDWLabel("eh_frame_begin", EHFrameInfo.Number),
getDWLabel("eh_frame_common", getDWLabel("eh_frame_common",
@ -269,7 +268,7 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) {
// get holes which confuse readers of eh_frame. // get holes which confuse readers of eh_frame.
Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3, Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3,
0, 0, false); 0, 0, false);
EmitLabel("eh_frame_end", EHFrameInfo.Number); Asm->OutStreamer.EmitLabel(getDWLabel("eh_frame_end", EHFrameInfo.Number));
// If the function is marked used, this table should be also. We cannot // If the function is marked used, this table should be also. We cannot
// make the mark unconditional in this case, since retaining the table also // make the mark unconditional in this case, since retaining the table also
@ -701,7 +700,7 @@ void DwarfException::EmitExceptionTable() {
// Emit the LSDA. // Emit the LSDA.
O << "GCC_except_table" << SubprogramCount << ":\n"; O << "GCC_except_table" << SubprogramCount << ":\n";
EmitLabel("exception", SubprogramCount); Asm->OutStreamer.EmitLabel(getDWLabel("exception", SubprogramCount));
if (IsSJLJ) { if (IsSJLJ) {
SmallString<16> LSDAName; SmallString<16> LSDAName;
@ -949,7 +948,7 @@ void DwarfException::BeginFunction(const MachineFunction *MF) {
if (shouldEmitMoves || shouldEmitTable) if (shouldEmitMoves || shouldEmitTable)
// Assumes in correct section after the entry point. // Assumes in correct section after the entry point.
EmitLabel("eh_func_begin", ++SubprogramCount); Asm->OutStreamer.EmitLabel(getDWLabel("eh_func_begin", ++SubprogramCount));
shouldEmitTableModule |= shouldEmitTable; shouldEmitTableModule |= shouldEmitTable;
shouldEmitMovesModule |= shouldEmitMoves; shouldEmitMovesModule |= shouldEmitMoves;
@ -966,7 +965,7 @@ void DwarfException::EndFunction() {
if (TimePassesIsEnabled) if (TimePassesIsEnabled)
ExceptionTimer->startTimer(); ExceptionTimer->startTimer();
EmitLabel("eh_func_end", SubprogramCount); Asm->OutStreamer.EmitLabel(getDWLabel("eh_func_end", SubprogramCount));
EmitExceptionTable(); EmitExceptionTable();
MCSymbol *FunctionEHSym = MCSymbol *FunctionEHSym =

View File

@ -232,14 +232,6 @@ void DwarfPrinter::PrintLabelName(const char *Tag, unsigned Number,
O << Suffix; O << Suffix;
} }
/// EmitLabel - Emit location label for internal use by Dwarf.
///
void DwarfPrinter::EmitLabel(const char *Tag, unsigned Number) const {
// FIXME: REMOVE.
PrintLabelName(Tag, Number);
O << ":\n";
}
/// EmitReference - Emit a reference to a label. /// EmitReference - Emit a reference to a label.
/// ///
void DwarfPrinter::EmitReference(const char *Tag, unsigned Number, void DwarfPrinter::EmitReference(const char *Tag, unsigned Number,

View File

@ -129,11 +129,6 @@ public:
void PrintLabelName(const char *Tag, unsigned Number, void PrintLabelName(const char *Tag, unsigned Number,
const char *Suffix) const; const char *Suffix) const;
/// EmitLabel - Emit location label for internal use by Dwarf.
///
void EmitLabel(const MCSymbol *Label) const;
void EmitLabel(const char *Tag, unsigned Number) const;
/// EmitReference - Emit a reference to a label. /// EmitReference - Emit a reference to a label.
/// ///
void EmitReference(const MCSymbol *Label, bool IsPCRelative = false, void EmitReference(const MCSymbol *Label, bool IsPCRelative = false,