mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
mcstreamerize AsmPrinter::printLabel.
llvm-svn: 98025
This commit is contained in:
parent
5b150ee899
commit
4494a28b3c
@ -1323,7 +1323,6 @@ void AsmPrinter::processDebugLoc(const MachineInstr *MI,
|
||||
CurDLT.getColumnNumber(),
|
||||
CurDLT.getScope().getNode());
|
||||
printLabel(L);
|
||||
O << '\n';
|
||||
DW->BeginScope(MI, L);
|
||||
PrevDLT = CurDLT.getNode();
|
||||
}
|
||||
@ -1554,12 +1553,17 @@ void AsmPrinter::printKill(const MachineInstr *MI) const {
|
||||
/// printLabel - This method prints a local label used by debug and
|
||||
/// exception handling tables.
|
||||
void AsmPrinter::printLabelInst(const MachineInstr *MI) const {
|
||||
printLabel(MI->getOperand(0).getImm());
|
||||
OutStreamer.AddBlankLine();
|
||||
MCSymbol *Sym =
|
||||
OutContext.GetOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) +
|
||||
"label" + Twine(MI->getOperand(0).getImm()));
|
||||
OutStreamer.EmitLabel(Sym);
|
||||
}
|
||||
|
||||
void AsmPrinter::printLabel(unsigned Id) const {
|
||||
O << MAI->getPrivateGlobalPrefix() << "label" << Id << ':';
|
||||
MCSymbol *Sym =
|
||||
OutContext.GetOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) +
|
||||
"label" + Twine(Id));
|
||||
OutStreamer.EmitLabel(Sym);
|
||||
}
|
||||
|
||||
/// PrintAsmOperand - Print the specified operand of MI, an INLINEASM
|
||||
|
@ -1972,7 +1972,6 @@ void DwarfDebug::endScope(const MachineInstr *MI) {
|
||||
|
||||
unsigned Label = MMI->NextLabelID();
|
||||
Asm->printLabel(Label);
|
||||
O << '\n';
|
||||
|
||||
SmallVector<DbgScope *, 2> &SD = I->second;
|
||||
for (SmallVector<DbgScope *, 2>::iterator SDI = SD.begin(), SDE = SD.end();
|
||||
@ -2131,7 +2130,6 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
|
||||
DLT.getColumnNumber(),
|
||||
DLT.getScope().getNode());
|
||||
Asm->printLabel(LabelID);
|
||||
O << '\n';
|
||||
}
|
||||
if (TimePassesIsEnabled)
|
||||
DebugTimer->stopTimer();
|
||||
|
Loading…
Reference in New Issue
Block a user