From 90117cbb6f9e6bd10361e6d81e890f5cfc7b4a87 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 25 Apr 2003 23:39:08 +0000 Subject: [PATCH] Remove long-dead obsolete cruft git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5955 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CFG.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 48918e06099..e84f1db3ebc 100644 --- a/include/llvm/Support/CFG.h +++ b/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(*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(*It)->getParent(); + return cast(*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; } -- 2.40.0