[llvm-commits] CVS: llvm/include/llvm/iTerminators.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 8 15:44:45 PST 2004
Changes in directory llvm/include/llvm:
iTerminators.h updated: 1.37 -> 1.38
---
Log message:
rename the "exceptional" destination of an invoke instruction to the 'unwind' dest
---
Diffs of the changes: (+5 -5)
Index: llvm/include/llvm/iTerminators.h
diff -u llvm/include/llvm/iTerminators.h:1.37 llvm/include/llvm/iTerminators.h:1.38
--- llvm/include/llvm/iTerminators.h:1.37 Thu Nov 20 12:11:47 2003
+++ llvm/include/llvm/iTerminators.h Sun Feb 8 15:43:20 2004
@@ -261,10 +261,10 @@
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 @@
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) {
More information about the llvm-commits
mailing list