mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Added a temporary hack to get the llvm-streams to work for future checkins.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "llvm/ADT/iterator"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/Streams.h"
|
||||
#include <vector>
|
||||
#include <cassert>
|
||||
#include <iosfwd>
|
||||
@@ -284,6 +285,10 @@ public:
|
||||
IsDead = false;
|
||||
}
|
||||
|
||||
friend llvm_ostream& operator<<(llvm_ostream& os, const MachineOperand& mop) {
|
||||
if (os.stream()) *os.stream() << mop;
|
||||
return os;
|
||||
}
|
||||
friend std::ostream& operator<<(std::ostream& os, const MachineOperand& mop);
|
||||
|
||||
friend class MachineInstr;
|
||||
@@ -400,8 +405,15 @@ public:
|
||||
//
|
||||
// Debugging support
|
||||
//
|
||||
void print(llvm_ostream &OS, const TargetMachine *TM) const {
|
||||
if (OS.stream()) print(*OS.stream(), TM);
|
||||
}
|
||||
void print(std::ostream &OS, const TargetMachine *TM) const;
|
||||
void dump() const;
|
||||
friend llvm_ostream& operator<<(llvm_ostream& os, const MachineInstr& minstr){
|
||||
if (os.stream()) *os.stream() << minstr;
|
||||
return os;
|
||||
}
|
||||
friend std::ostream& operator<<(std::ostream& os, const MachineInstr& minstr);
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user