mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
An even better unbreakage...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "llvm/Target/MRegisterInfo.h"
|
||||
#include "llvm/Support/LeakDetector.h"
|
||||
#include "llvm/Support/Streams.h"
|
||||
#include <ostream>
|
||||
using namespace llvm;
|
||||
|
||||
/// MachineInstr ctor - This constructor creates a dummy MachineInstr with
|
||||
@@ -363,3 +364,14 @@ std::ostream &llvm::operator<<(std::ostream &OS, const MachineOperand &MO) {
|
||||
|
||||
return OS;
|
||||
}
|
||||
|
||||
OStream& llvm::operator<<(OStream& os, const MachineInstr& minstr) {
|
||||
if (os.stream()) *os.stream() << minstr;
|
||||
return os;
|
||||
}
|
||||
|
||||
OStream& llvm::operator<<(OStream& os, const MachineOperand& mop) {
|
||||
if (os.stream()) *os.stream() << mop;
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user