From: Bill Wendling Date: Fri, 22 Mar 2013 18:46:32 +0000 (+0000) Subject: Revert r177675. This is language-specific and shouldn't be in the API. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=1ca6468c0518b2c2dcd69c68b2099ae93f57f8f9 Revert r177675. This is language-specific and shouldn't be in the API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177748 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Instructions.h b/include/llvm/IR/Instructions.h index 5dbca52e82d..7e29699f73d 100644 --- a/include/llvm/IR/Instructions.h +++ b/include/llvm/IR/Instructions.h @@ -2230,9 +2230,6 @@ public: /// to determine what type of clause this is. Value *getClause(unsigned Idx) const { return OperandList[Idx + 1]; } - /// hasCatchAll - Return 'true' if this landing pad has a catch-all. - bool hasCatchAll() const; - /// isCatch - Return 'true' if the clause and index Idx is a catch clause. bool isCatch(unsigned Idx) const { return !isa(OperandList[Idx + 1]->getType()); diff --git a/lib/IR/Instructions.cpp b/lib/IR/Instructions.cpp index 841cc5926a9..d58877ef773 100644 --- a/lib/IR/Instructions.cpp +++ b/lib/IR/Instructions.cpp @@ -256,13 +256,6 @@ void LandingPadInst::addClause(Value *Val) { OperandList[OpNo] = Val; } -bool LandingPadInst::hasCatchAll() const { - for (unsigned I = 0, E = getNumClauses(); I != E; ++I) - if (isCatch(I) && isa(getClause(I))) - return true; - return false; -} - //===----------------------------------------------------------------------===// // CallInst Implementation //===----------------------------------------------------------------------===//