/// processDebugLoc - Processes the debug information of each machine
/// instruction's DebugLoc.
- void processDebugLoc(DebugLoc DL);
+ void processDebugLoc(const MachineInstr *MI);
/// printInlineAsm - This method formats and prints the specified machine
/// instruction that is an inline asm.
/// processDebugLoc - Processes the debug information of each machine
/// instruction's DebugLoc.
-void AsmPrinter::processDebugLoc(DebugLoc DL) {
+void AsmPrinter::processDebugLoc(const MachineInstr *MI) {
if (!MAI || !DW)
return;
-
+ DebugLoc DL = MI->getDebugLoc();
if (MAI->doesSupportDebugInformation() && DW->ShouldEmitDwarfDebug()) {
if (!DL.isUnknown()) {
DebugLocTuple CurDLT = MF->getDebugLocTuple(DL);
}}
// Call the autogenerated instruction printer routines.
- processDebugLoc(MI->getDebugLoc());
+ processDebugLoc(MI);
printInstruction(MI);
if (VerboseAsm && !MI->getDebugLoc().isUnknown())
EmitComments(*MI);
II != E; ++II) {
// Print the assembly for the instruction.
++EmittedInsts;
- processDebugLoc(II->getDebugLoc());
+ processDebugLoc(II);
printInstruction(II);
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
// Print the assembly for the instruction.
- processDebugLoc(II->getDebugLoc());
+ processDebugLoc(II);
printInstruction(II);
if (VerboseAsm && !II->getDebugLoc().isUnknown())
///
void SPUAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
++EmittedInsts;
- processDebugLoc(MI->getDebugLoc());
+ processDebugLoc(MI);
printInstruction(MI);
if (VerboseAsm && !MI->getDebugLoc().isUnknown())
void MSP430AsmPrinter::printMachineInstruction(const MachineInstr *MI) {
++EmittedInsts;
- processDebugLoc(MI->getDebugLoc());
+ processDebugLoc(MI);
// Call the autogenerated instruction printer routines.
printInstruction(MI);
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
- processDebugLoc(II->getDebugLoc());
+ processDebugLoc(II);
// Print the assembly for the instruction.
printInstruction(II);
}
bool PIC16AsmPrinter::printMachineInstruction(const MachineInstr *MI) {
- processDebugLoc(MI->getDebugLoc());
+ processDebugLoc(MI);
printInstruction(MI);
void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
++EmittedInsts;
- processDebugLoc(MI->getDebugLoc());
+ processDebugLoc(MI);
// Check for slwi/srwi mnemonics.
if (MI->getOpcode() == PPC::RLWINM) {
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
// Print the assembly for the instruction.
- processDebugLoc(II->getDebugLoc());
+ processDebugLoc(II);
printInstruction(II);
if (VerboseAsm && !II->getDebugLoc().isUnknown())
void SystemZAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
++EmittedInsts;
- processDebugLoc(MI->getDebugLoc());
+ processDebugLoc(MI);
// Call the autogenerated instruction printer routines.
printInstruction(MI);
void X86AsmPrinter::printMachineInstruction(const MachineInstr *MI) {
++EmittedInsts;
- processDebugLoc(MI->getDebugLoc());
+ processDebugLoc(MI);
printInstructionThroughMCStreamer(MI);
void XCoreAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
++EmittedInsts;
- processDebugLoc(MI->getDebugLoc());
+ processDebugLoc(MI);
// Check for mov mnemonic
unsigned src, dst, srcSR, dstSR;