mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Use raw_ostream throughout the AsmPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -258,6 +258,11 @@ public:
|
||||
}
|
||||
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;
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
@ -316,6 +321,11 @@ inline std::ostream& operator<<(std::ostream &OS, const MachineInstr &MI) {
|
||||
return OS;
|
||||
}
|
||||
|
||||
inline raw_ostream& operator<<(raw_ostream &OS, const MachineInstr &MI) {
|
||||
MI.print(OS);
|
||||
return OS;
|
||||
}
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user