mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Remove DebugLoc::print(LLVMContext, raw_ostream), it was just
forwarding to the one that didn't take a context. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230700 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1512,12 +1512,6 @@ void MachineInstr::dump() const {
|
||||
#endif
|
||||
}
|
||||
|
||||
static void printDebugLoc(DebugLoc DL, const MachineFunction *MF,
|
||||
raw_ostream &CommentOS) {
|
||||
const LLVMContext &Ctx = MF->getFunction()->getContext();
|
||||
DL.print(Ctx, CommentOS);
|
||||
}
|
||||
|
||||
void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM,
|
||||
bool SkipOpers) const {
|
||||
// We can be a bit tidier if we know the TargetMachine and/or MachineFunction.
|
||||
@@ -1738,7 +1732,7 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM,
|
||||
DebugLoc InlinedAtDL = DebugLoc::getFromDILocation(InlinedAt);
|
||||
if (!InlinedAtDL.isUnknown() && MF) {
|
||||
OS << " inlined @[ ";
|
||||
printDebugLoc(InlinedAtDL, MF, OS);
|
||||
InlinedAtDL.print(OS);
|
||||
OS << " ]";
|
||||
}
|
||||
}
|
||||
@@ -1747,7 +1741,7 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM,
|
||||
} else if (!debugLoc.isUnknown() && MF) {
|
||||
if (!HaveSemi) OS << ";";
|
||||
OS << " dbg:";
|
||||
printDebugLoc(debugLoc, MF, OS);
|
||||
debugLoc.print(OS);
|
||||
}
|
||||
|
||||
OS << '\n';
|
||||
|
||||
Reference in New Issue
Block a user