diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-07-10 07:15:17 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-07-10 07:15:17 +0000 |
commit | db82d2f33827dc44dc0076ad26a1a0f4638719c5 (patch) | |
tree | 426d1932604bec0dc540456540d91402c644e66a /llvm/lib/IR/Instruction.cpp | |
parent | 0f70ee9017d080e5a068647a8e3717c483c4c51b (diff) | |
download | bcm5719-llvm-db82d2f33827dc44dc0076ad26a1a0f4638719c5.tar.gz bcm5719-llvm-db82d2f33827dc44dc0076ad26a1a0f4638719c5.zip |
Revert the new EH instructions
This reverts commits r241888-r241891, I didn't mean to commit them.
llvm-svn: 241893
Diffstat (limited to 'llvm/lib/IR/Instruction.cpp')
-rw-r--r-- | llvm/lib/IR/Instruction.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/IR/Instruction.cpp b/llvm/lib/IR/Instruction.cpp index 2b09e551b79..c57ba16cf6c 100644 --- a/llvm/lib/IR/Instruction.cpp +++ b/llvm/lib/IR/Instruction.cpp @@ -196,11 +196,6 @@ const char *Instruction::getOpcodeName(unsigned OpCode) { case Invoke: return "invoke"; case Resume: return "resume"; case Unreachable: return "unreachable"; - case CleanupRet: return "cleanupret"; - case CatchEndBlock: return "catchendblock"; - case CatchRet: return "catchret"; - case CatchBlock: return "catchblock"; - case TerminateBlock: return "terminateblock"; // Standard binary operators... case Add: return "add"; @@ -261,7 +256,6 @@ const char *Instruction::getOpcodeName(unsigned OpCode) { case ExtractValue: return "extractvalue"; case InsertValue: return "insertvalue"; case LandingPad: return "landingpad"; - case CleanupBlock: return "cleanupblock"; default: return "<Invalid operator> "; } @@ -413,8 +407,6 @@ bool Instruction::mayReadFromMemory() const { case Instruction::Fence: // FIXME: refine definition of mayReadFromMemory case Instruction::AtomicCmpXchg: case Instruction::AtomicRMW: - case Instruction::CatchRet: - case Instruction::TerminateBlock: return true; case Instruction::Call: return !cast<CallInst>(this)->doesNotAccessMemory(); @@ -435,8 +427,6 @@ bool Instruction::mayWriteToMemory() const { case Instruction::VAArg: case Instruction::AtomicCmpXchg: case Instruction::AtomicRMW: - case Instruction::CatchRet: - case Instruction::TerminateBlock: return true; case Instruction::Call: return !cast<CallInst>(this)->onlyReadsMemory(); @@ -465,12 +455,6 @@ bool Instruction::isAtomic() const { bool Instruction::mayThrow() const { if (const CallInst *CI = dyn_cast<CallInst>(this)) return !CI->doesNotThrow(); - if (const auto *CRI = dyn_cast<CleanupReturnInst>(this)) - return CRI->unwindsToCaller(); - if (const auto *CEBI = dyn_cast<CatchEndBlockInst>(this)) - return CEBI->unwindsToCaller(); - if (const auto *TBI = dyn_cast<TerminateBlockInst>(this)) - return TBI->unwindsToCaller(); return isa<ResumeInst>(this); } |