diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-18 21:47:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-18 21:47:36 +0000 |
commit | 1ccc4684f3413d1f176a2c7a867545ce03b6414c (patch) | |
tree | d649d7d4c5bcff16cd9530da8bb7ad08487dfbde /include/llvm/CodeGen | |
parent | 154e1047184384afd0a701a9f8816459cf0b3490 (diff) |
Implement operator<< for machine basic blocks to make it easier to dump them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 1 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 85d348337a..1196f2126b 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -222,6 +222,7 @@ private: // Methods used to maintain doubly linked list of blocks... void removePredecessor(MachineBasicBlock *pred); }; +std::ostream& operator<<(std::ostream &OS, const MachineBasicBlock &MBB); //===--------------------------------------------------------------------===// diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index b967a1fcb3..907985877f 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -20,6 +20,7 @@ #include "llvm/Support/DataTypes.h" #include <vector> #include <cassert> +#include <iosfwd> namespace llvm { |