summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-23 22:53:13 +0000
committerChris Lattner <sabre@nondot.org>2008-08-23 22:53:13 +0000
commit62ca32540f950d500227f1863b95cd08ad28099e (patch)
treef204ed5bd4b0be238323ee6946ad05ef6cb46ebf /include
parentab49ee752ec37f586e45c999eca1e29e32697cb7 (diff)
downloadllvm-62ca32540f950d500227f1863b95cd08ad28099e.tar.gz
llvm-62ca32540f950d500227f1863b95cd08ad28099e.tar.bz2
llvm-62ca32540f950d500227f1863b95cd08ad28099e.tar.xz
get MachineConstantPool off std::ostream, onto raw_ostream. It would be
really nice if someone converted MachineFunction::print to raw_ostream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineConstantPool.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h
index b6bf566f3f..9db68319e8 100644
--- a/include/llvm/CodeGen/MachineConstantPool.h
+++ b/include/llvm/CodeGen/MachineConstantPool.h
@@ -16,10 +16,8 @@
#define LLVM_CODEGEN_MACHINECONSTANTPOOL_H
#include "llvm/ADT/FoldingSet.h"
-#include "llvm/Support/Streams.h"
#include <cassert>
#include <vector>
-#include <iosfwd>
namespace llvm {
@@ -49,19 +47,10 @@ public:
virtual void AddSelectionDAGCSEId(FoldingSetNodeID &ID) = 0;
- /// print - Implement operator<<...
- ///
- void print(std::ostream &O) const;
- void print(std::ostream *O) const { if (O) print(*O); }
+ /// print - Implement operator<<
virtual void print(raw_ostream &O) const = 0;
};
-inline std::ostream &operator<<(std::ostream &OS,
- const MachineConstantPoolValue &V) {
- V.print(OS);
- return OS;
-}
-
inline raw_ostream &operator<<(raw_ostream &OS,
const MachineConstantPoolValue &V) {
V.print(OS);
@@ -147,11 +136,9 @@ public:
/// print - Used by the MachineFunction printer to print information about
/// constant pool objects. Implemented in MachineFunction.cpp
///
- void print(std::ostream &OS) const;
- void print(std::ostream *OS) const { if (OS) print(*OS); }
+ void print(raw_ostream &OS) const;
- /// dump - Call print(std::cerr) to be called from the debugger.
- ///
+ /// dump - Call print(cerr) to be called from the debugger.
void dump() const;
};