summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-25 23:39:08 +0000
committerChris Lattner <sabre@nondot.org>2003-04-25 23:39:08 +0000
commit201b4b9c88b649e41c841f56c54f07b0bee8fc12 (patch)
tree99939cf9a3df063544d8519ebcc948d13264e927 /llvm
parent35874f1e3c7ca84faf8d9c54369902d89be701e0 (diff)
downloadbcm5719-llvm-201b4b9c88b649e41c841f56c54f07b0bee8fc12.tar.gz
bcm5719-llvm-201b4b9c88b649e41c841f56c54f07b0bee8fc12.zip
Remove long-dead obsolete cruft
llvm-svn: 5955
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/CFG.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/include/llvm/Support/CFG.h b/llvm/include/llvm/Support/CFG.h
index 48918e06099..e84f1db3ebc 100644
--- a/llvm/include/llvm/Support/CFG.h
+++ b/llvm/include/llvm/Support/CFG.h
@@ -26,15 +26,7 @@ public:
typedef PredIterator<_Ptr,_USE_iterator> _Self;
typedef typename super::pointer pointer;
- inline void advancePastConstants() {
- // TODO: This is bad
- // Loop to ignore constant pool references
- while (It != BB->use_end() && !isa<TerminatorInst>(*It))
- ++It;
- }
-
inline PredIterator(_Ptr *bb) : BB(bb), It(bb->use_begin()) {
- advancePastConstants();
}
inline PredIterator(_Ptr *bb, bool) : BB(bb), It(bb->use_end()) {}
@@ -43,13 +35,13 @@ public:
inline pointer operator*() const {
assert(It != BB->use_end() && "pred_iterator out of range!");
- return cast<Instruction>(*It)->getParent();
+ return cast<TerminatorInst>(*It)->getParent();
}
inline pointer *operator->() const { return &(operator*()); }
inline _Self& operator++() { // Preincrement
assert(It != BB->use_end() && "pred_iterator out of range!");
- ++It; advancePastConstants();
+ ++It;
return *this;
}
OpenPOWER on IntegriCloud