mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +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:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include "llvm/Value.h"
|
||||
#include "llvm/ADT/iterator"
|
||||
#include "llvm/Support/Streams.h"
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
@@ -69,6 +70,9 @@ public:
|
||||
void dump(int indent=0) const;
|
||||
|
||||
// Debugging support
|
||||
void print(llvm_ostream &os) const {
|
||||
if (os.stream()) print(*os.stream());
|
||||
}
|
||||
virtual void print(std::ostream &os) const = 0;
|
||||
|
||||
protected:
|
||||
@@ -92,15 +96,17 @@ protected:
|
||||
};
|
||||
|
||||
// ostream << operator for SchedGraphNode class
|
||||
inline llvm_ostream &operator<<(llvm_ostream &os,
|
||||
const SchedGraphNodeCommon &node) {
|
||||
node.print(os);
|
||||
return os;
|
||||
}
|
||||
inline std::ostream &operator<<(std::ostream &os,
|
||||
const SchedGraphNodeCommon &node) {
|
||||
node.print(os);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//
|
||||
// SchedGraphEdge - Edge class to represent dependencies
|
||||
//
|
||||
@@ -182,6 +188,9 @@ public:
|
||||
|
||||
public:
|
||||
// Debugging support
|
||||
void print(llvm_ostream &os) const {
|
||||
if (os.stream()) print(*os.stream());
|
||||
}
|
||||
void print(std::ostream &os) const;
|
||||
void dump(int indent=0) const;
|
||||
|
||||
@@ -191,6 +200,10 @@ private:
|
||||
};
|
||||
|
||||
// ostream << operator for SchedGraphNode class
|
||||
inline llvm_ostream &operator<<(llvm_ostream &os, const SchedGraphEdge &edge) {
|
||||
edge.print(os);
|
||||
return os;
|
||||
}
|
||||
inline std::ostream &operator<<(std::ostream &os, const SchedGraphEdge &edge) {
|
||||
edge.print(os);
|
||||
return os;
|
||||
|
||||
Reference in New Issue
Block a user