summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 01:12:47 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 01:12:47 +0000
commitd74c556e9aaad81a188158b7ba12d7ccffb30936 (patch)
treee65b120be611eddb210982e0af5c0d7cebf0761f /include
parent19ef66968965f829336f4dc01fec05bfa72712c3 (diff)
downloadllvm-d74c556e9aaad81a188158b7ba12d7ccffb30936.tar.gz
llvm-d74c556e9aaad81a188158b7ba12d7ccffb30936.tar.bz2
llvm-d74c556e9aaad81a188158b7ba12d7ccffb30936.tar.xz
convert some stuff to work on raw_ostreams instead of std::ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h4
-rw-r--r--include/llvm/CodeGen/MachineJumpTableInfo.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index 1486a5ea58..05ab49961d 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/include/llvm/CodeGen/MachineFrameInfo.h
@@ -18,10 +18,10 @@
#include "llvm/ADT/DenseSet.h"
#include "llvm/Support/DataTypes.h"
#include <cassert>
-#include <iosfwd>
#include <vector>
namespace llvm {
+class raw_ostream;
class TargetData;
class TargetRegisterClass;
class Type;
@@ -423,7 +423,7 @@ public:
/// print - Used by the MachineFunction printer to print information about
/// stack objects. Implemented in MachineFunction.cpp
///
- void print(const MachineFunction &MF, std::ostream &OS) const;
+ void print(const MachineFunction &MF, raw_ostream &OS) const;
/// dump - Print the function to stderr.
void dump(const MachineFunction &MF) const;
diff --git a/include/llvm/CodeGen/MachineJumpTableInfo.h b/include/llvm/CodeGen/MachineJumpTableInfo.h
index 3896691bcd..3ff2f2e8c7 100644
--- a/include/llvm/CodeGen/MachineJumpTableInfo.h
+++ b/include/llvm/CodeGen/MachineJumpTableInfo.h
@@ -21,13 +21,13 @@
#define LLVM_CODEGEN_MACHINEJUMPTABLEINFO_H
#include <vector>
-#include <iosfwd>
#include <cassert>
namespace llvm {
class MachineBasicBlock;
class TargetData;
+class raw_ostream;
/// MachineJumpTableEntry - One jump table in the jump table info.
///
@@ -79,8 +79,7 @@ public:
/// print - Used by the MachineFunction printer to print information about
/// jump tables. 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 to stderr.
///