diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-12 22:39:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-12 22:39:50 +0000 |
commit | 83d485b310e3d6ec956a9de36c7afa8cfa3e2f32 (patch) | |
tree | d53f0cc99e610eee9b584aed1d2e05edb27637e4 /llvm/lib/VMCore/BasicBlock.cpp | |
parent | 1cc42f19999e710622977e77c1538ce772032d0c (diff) | |
download | bcm5719-llvm-83d485b310e3d6ec956a9de36c7afa8cfa3e2f32.tar.gz bcm5719-llvm-83d485b310e3d6ec956a9de36c7afa8cfa3e2f32.zip |
* Pull BasicBlock::pred_* and BasicBlock::succ_* out of BasicBlock.h and into
llvm/Support/CFG.h
* Make pred & succ iterators for intervals global functions
* Add #includes that are now neccesary because BasicBlock.h doesn't include
InstrTypes.h anymore
llvm-svn: 1750
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index df999b84bff..222bb140193 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/lib/VMCore/BasicBlock.cpp @@ -5,11 +5,10 @@ //===----------------------------------------------------------------------===// #include "llvm/ValueHolderImpl.h" -#include "llvm/BasicBlock.h" #include "llvm/iTerminators.h" -#include "llvm/Method.h" #include "llvm/SymbolTable.h" #include "llvm/Type.h" +#include "llvm/Support/CFG.h" #include "llvm/iPHINode.h" #include "llvm/CodeGen/MachineInstr.h" @@ -90,11 +89,11 @@ bool BasicBlock::hasConstantReferences() const { // called while the predecessor still refers to this block. // void BasicBlock::removePredecessor(BasicBlock *Pred) { - assert(find(pred_begin(), pred_end(), Pred) != pred_end() && + assert(find(pred_begin(this), pred_end(this), Pred) != pred_end(this) && "removePredecessor: BB is not a predecessor!"); if (!isa<PHINode>(front())) return; // Quick exit. - pred_iterator PI(pred_begin()), EI(pred_end()); + pred_iterator PI(pred_begin(this)), EI(pred_end(this)); unsigned max_idx; // Loop over the rest of the predecessors until we run out, or until we find |