diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-08 21:44:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-08 21:44:31 +0000 |
commit | aeb2a1d70807aa626f335fb23d47bc604ffeaa15 (patch) | |
tree | ef4d4e8c8794fb6ddfb4148f6d5ebe91987bf72a /include/llvm/iTerminators.h | |
parent | 95778a02572d2d5e0e4bea6ef2ec95b2964c05be (diff) | |
download | external_llvm-aeb2a1d70807aa626f335fb23d47bc604ffeaa15.zip external_llvm-aeb2a1d70807aa626f335fb23d47bc604ffeaa15.tar.gz external_llvm-aeb2a1d70807aa626f335fb23d47bc604ffeaa15.tar.bz2 |
rename the "exceptional" destination of an invoke instruction to the 'unwind' dest
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/iTerminators.h')
-rw-r--r-- | include/llvm/iTerminators.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index 56132ee..b0457f3 100644 --- a/include/llvm/iTerminators.h +++ b/include/llvm/iTerminators.h @@ -261,10 +261,10 @@ public: inline BasicBlock *getNormalDest() { return cast<BasicBlock>(Operands[1].get()); } - inline const BasicBlock *getExceptionalDest() const { + inline const BasicBlock *getUnwindDest() const { return cast<BasicBlock>(Operands[2].get()); } - inline BasicBlock *getExceptionalDest() { + inline BasicBlock *getUnwindDest() { return cast<BasicBlock>(Operands[2].get()); } @@ -272,17 +272,17 @@ public: Operands[1] = reinterpret_cast<Value*>(B); } - inline void setExceptionalDest(BasicBlock *B){ + inline void setUnwindDest(BasicBlock *B){ Operands[2] = reinterpret_cast<Value*>(B); } virtual const BasicBlock *getSuccessor(unsigned i) const { assert(i < 2 && "Successor # out of range for invoke!"); - return i == 0 ? getNormalDest() : getExceptionalDest(); + return i == 0 ? getNormalDest() : getUnwindDest(); } inline BasicBlock *getSuccessor(unsigned i) { assert(i < 2 && "Successor # out of range for invoke!"); - return i == 0 ? getNormalDest() : getExceptionalDest(); + return i == 0 ? getNormalDest() : getUnwindDest(); } virtual void setSuccessor(unsigned idx, BasicBlock *NewSucc) { |