diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-03-22 18:46:32 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-03-22 18:46:32 +0000 |
commit | 3b3e50503cfbd3a72cb1baef8c01b7f73d1a8cb7 (patch) | |
tree | 687ac0d99efbcfdbe01e35b51665d074721fd181 | |
parent | fdc660bf2e03d86154abfeb0b6f91f0f0cde240f (diff) | |
download | bcm5719-llvm-3b3e50503cfbd3a72cb1baef8c01b7f73d1a8cb7.tar.gz bcm5719-llvm-3b3e50503cfbd3a72cb1baef8c01b7f73d1a8cb7.zip |
Revert r177675. This is language-specific and shouldn't be in the API.
llvm-svn: 177748
-rw-r--r-- | llvm/include/llvm/IR/Instructions.h | 3 | ||||
-rw-r--r-- | llvm/lib/IR/Instructions.cpp | 7 |
2 files changed, 0 insertions, 10 deletions
diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h index 5dbca52e82d..7e29699f73d 100644 --- a/llvm/include/llvm/IR/Instructions.h +++ b/llvm/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<ArrayType>(OperandList[Idx + 1]->getType()); diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 841cc5926a9..d58877ef773 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/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<ConstantPointerNull>(getClause(I))) - return true; - return false; -} - //===----------------------------------------------------------------------===// // CallInst Implementation //===----------------------------------------------------------------------===// |