aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-20 22:44:16 +0000
committerChris Lattner <sabre@nondot.org>2001-06-20 22:44:16 +0000
commitbb76d9d08056c7b4d0a470bb09eb7a4069c17a69 (patch)
tree30915474ec020cd7f70baa3f9e332259ab3f7415 /include/llvm/BasicBlock.h
parent2275c1d55d48a48d23089e8ce18bab275eaebac8 (diff)
Factor the predeclarations of the CFG.h functionality into a seperate, new header
file: CFGdecls.h This allows the addition of BasicBlock::(pred|succ)_iterator typedefs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r--include/llvm/BasicBlock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index 0828e0777c..3fb33d4b6d 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -24,6 +24,7 @@
#include "llvm/Value.h" // Get the definition of Value
#include "llvm/ValueHolder.h"
+#include "llvm/CFGdecls.h"
class Instruction;
class Method;
@@ -42,6 +43,11 @@ private :
void setParent(Method *parent);
public:
+ typedef cfg::succ_iterator succ_iterator; // Include CFG.h to use these
+ typedef cfg::pred_iterator pred_iterator;
+ typedef cfg::succ_const_iterator succ_const_iterator;
+ typedef cfg::pred_const_iterator pred_const_iterator;
+
BasicBlock(const string &Name = "", Method *Parent = 0);
~BasicBlock();