[llvm] r177748 - Revert r177675. This is language-specific and shouldn't be in the API.

Bill Wendling isanbard at gmail.com
Fri Mar 22 11:46:32 PDT 2013


Author: void
Date: Fri Mar 22 13:46:32 2013
New Revision: 177748

URL: http://llvm.org/viewvc/llvm-project?rev=177748&view=rev
Log:
Revert r177675. This is language-specific and shouldn't be in the API.

Modified:
    llvm/trunk/include/llvm/IR/Instructions.h
    llvm/trunk/lib/IR/Instructions.cpp

Modified: llvm/trunk/include/llvm/IR/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Instructions.h?rev=177748&r1=177747&r2=177748&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Instructions.h (original)
+++ llvm/trunk/include/llvm/IR/Instructions.h Fri Mar 22 13:46:32 2013
@@ -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());

Modified: llvm/trunk/lib/IR/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Instructions.cpp?rev=177748&r1=177747&r2=177748&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Instructions.cpp (original)
+++ llvm/trunk/lib/IR/Instructions.cpp Fri Mar 22 13:46:32 2013
@@ -256,13 +256,6 @@ void LandingPadInst::addClause(Value *Va
   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
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list