mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-02 08:26:39 +00:00
remove various std::ostream version of printing methods from
MachineInstr and MachineOperand. This required eliminating a bunch of stuff that was using DOUT, I hope that bill doesn't mind me stealing his fun. ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79813 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -292,16 +292,7 @@ public:
|
||||
//
|
||||
// Debugging support
|
||||
//
|
||||
void print(std::ostream *OS, const TargetMachine *TM) const {
|
||||
if (OS) print(*OS, TM);
|
||||
}
|
||||
void print(std::ostream &OS, const TargetMachine *TM = 0) const;
|
||||
void print(std::ostream *OS) const { if (OS) print(*OS); }
|
||||
void print(raw_ostream *OS, const TargetMachine *TM) const {
|
||||
if (OS) print(*OS, TM);
|
||||
}
|
||||
void print(raw_ostream &OS, const TargetMachine *TM = 0) const;
|
||||
void print(raw_ostream *OS) const { if (OS) print(*OS); }
|
||||
void dump() const;
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
@@ -360,11 +351,6 @@ private:
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Debugging Support
|
||||
|
||||
inline std::ostream& operator<<(std::ostream &OS, const MachineInstr &MI) {
|
||||
MI.print(OS);
|
||||
return OS;
|
||||
}
|
||||
|
||||
inline raw_ostream& operator<<(raw_ostream &OS, const MachineInstr &MI) {
|
||||
MI.print(OS);
|
||||
return OS;
|
||||
|
@@ -16,7 +16,6 @@
|
||||
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <cassert>
|
||||
#include <iosfwd>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -133,7 +132,6 @@ public:
|
||||
MachineInstr *getParent() { return ParentMI; }
|
||||
const MachineInstr *getParent() const { return ParentMI; }
|
||||
|
||||
void print(std::ostream &os, const TargetMachine *TM = 0) const;
|
||||
void print(raw_ostream &os, const TargetMachine *TM = 0) const;
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
@@ -468,11 +466,6 @@ private:
|
||||
void RemoveRegOperandFromRegInfo();
|
||||
};
|
||||
|
||||
inline std::ostream &operator<<(std::ostream &OS, const MachineOperand &MO) {
|
||||
MO.print(OS, 0);
|
||||
return OS;
|
||||
}
|
||||
|
||||
inline raw_ostream &operator<<(raw_ostream &OS, const MachineOperand& MO) {
|
||||
MO.print(OS, 0);
|
||||
return OS;
|
||||
|
Reference in New Issue
Block a user