forked from OSchip/llvm-project
Revert r177675. This is language-specific and shouldn't be in the API.
llvm-svn: 177748
This commit is contained in:
parent
fdc660bf2e
commit
3b3e50503c
|
@ -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());
|
||||
|
|
|
@ -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
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue