Revert r177675. This is language-specific and shouldn't be in the API.
authorBill Wendling <isanbard@gmail.com>
Fri, 22 Mar 2013 18:46:32 +0000 (18:46 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 22 Mar 2013 18:46:32 +0000 (18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177748 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Instructions.h
lib/IR/Instructions.cpp

index 5dbca52e82d9c55e15ac86e0a79a9756272fe276..7e29699f73d9489281114a61d7449f539bcebf9c 100644 (file)
@@ -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<ArrayType>(OperandList[Idx + 1]->getType());
index 841cc5926a93cf24fe087b14f24f5fc275ef2e56..d58877ef773af6083358c4f0fabce9296a6f1093 100644 (file)
@@ -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<ConstantPointerNull>(getClause(I)))
-      return true;
-  return false;
-}
-
 //===----------------------------------------------------------------------===//
 //                        CallInst Implementation
 //===----------------------------------------------------------------------===//