mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Rewrite MachineOperand::print and MachineInstr::print to avoid
uses of TM->getSubtargetImpl and propagate to all calls. This could be a debugging regression in places where we had a TargetMachine and/or MachineFunction but don't have it as part of the MachineInstr. Fixing this would require passing a MachineFunction/Function down through the print operator, but none of the existing uses in tree seem to do this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230710 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1113,8 +1113,7 @@ public:
|
||||
//
|
||||
// Debugging support
|
||||
//
|
||||
void print(raw_ostream &OS, const TargetMachine *TM = nullptr,
|
||||
bool SkipOpers = false) const;
|
||||
void print(raw_ostream &OS, bool SkipOpers = false) const;
|
||||
void dump() const;
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
@ -217,7 +217,7 @@ public:
|
||||
///
|
||||
void clearParent() { ParentMI = nullptr; }
|
||||
|
||||
void print(raw_ostream &os, const TargetMachine *TM = nullptr) const;
|
||||
void print(raw_ostream &os, const TargetRegisterInfo *TRI = nullptr) const;
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Accessors that tell you what kind of MachineOperand you're looking at.
|
||||
|
Reference in New Issue
Block a user