diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 03:13:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 03:13:20 +0000 |
commit | cf143a4d917699f8f4202f331fa9e184070471fb (patch) | |
tree | 11df4a1200aac57c6156d1f9135d12d65812f864 /include/llvm | |
parent | 51a1132403da7c4e8a57369815596c8d485f5db2 (diff) | |
download | external_llvm-cf143a4d917699f8f4202f331fa9e184070471fb.zip external_llvm-cf143a4d917699f8f4202f331fa9e184070471fb.tar.gz external_llvm-cf143a4d917699f8f4202f331fa9e184070471fb.tar.bz2 |
remove std::ostream versions of printing stuff for MBB and MF,
upgrading a few things to use raw_ostream
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 2 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 1 | ||||
-rw-r--r-- | include/llvm/CodeGen/Passes.h | 6 |
3 files changed, 3 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 7d6ecf9..9b989b2 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -310,7 +310,6 @@ public: // Debugging methods. void dump() const; - void print(std::ostream &OS) const; void print(raw_ostream &OS) const; /// getNumber - MachineBasicBlocks are uniquely numbered at the function @@ -339,7 +338,6 @@ private: // Methods used to maintain doubly linked list of blocks... void removePredecessor(MachineBasicBlock *pred); }; -std::ostream& operator<<(std::ostream &OS, const MachineBasicBlock &MBB); raw_ostream& operator<<(raw_ostream &OS, const MachineBasicBlock &MBB); //===--------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index da25d61..51200cb 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -207,7 +207,6 @@ public: /// print - Print out the MachineFunction in a format suitable for debugging /// to the specified stream. /// - void print(std::ostream &OS) const; void print(raw_ostream &OS) const; /// viewCFG - This function is meant for use from the debugger. You can just diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index d8ec67f..b0db4c9 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -15,7 +15,6 @@ #ifndef LLVM_CODEGEN_PASSES_H #define LLVM_CODEGEN_PASSES_H -#include <iosfwd> #include <string> namespace llvm { @@ -25,6 +24,7 @@ namespace llvm { class TargetMachine; class TargetLowering; class RegisterCoalescer; + class raw_ostream; /// createUnreachableBlockEliminationPass - The LLVM code generator does not /// work well with unreachable basic blocks (what live ranges make sense for a @@ -36,7 +36,7 @@ namespace llvm { /// MachineFunctionPrinter pass - This pass prints out the machine function to /// the given stream, as a debugging tool. - FunctionPass *createMachineFunctionPrinterPass(std::ostream *OS, + FunctionPass *createMachineFunctionPrinterPass(raw_ostream &OS, const std::string &Banner =""); /// MachineLoopInfo pass - This pass is a loop analysis pass. @@ -166,7 +166,7 @@ namespace llvm { /// Creates a pass to print GC metadata. /// - FunctionPass *createGCInfoPrinter(std::ostream &OS); + FunctionPass *createGCInfoPrinter(raw_ostream &OS); /// createMachineLICMPass - This pass performs LICM on machine instructions. /// |