aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-04-10 00:04:27 +0000
committerBill Wendling <isanbard@gmail.com>2011-04-10 00:04:27 +0000
commitd7bb295d223e028aa9ba7fbeafc8928db4a74972 (patch)
tree6bbe67645fc6f7c4500dc6df7b7966e203ffda3f /include/llvm/BasicBlock.h
parentb1145c8cee6ab749f00d07d3d7dab0d1d1fd0c06 (diff)
downloadexternal_llvm-d7bb295d223e028aa9ba7fbeafc8928db4a74972.tar.gz
external_llvm-d7bb295d223e028aa9ba7fbeafc8928db4a74972.tar.bz2
external_llvm-d7bb295d223e028aa9ba7fbeafc8928db4a74972.zip
Beginning of the Great Exception Handling Rewrite.
* Add a "landing pad" attribute to the BasicBlock. * Modify the bitcode reader and writer to handle said attribute. Later: The verifier will ensure that the landing pad attribute is used in the appropriate manner. I.e., not applied to the entry block, and applied only to basic blocks that are branched to via a `dispatch' instruction. (This is a work-in-progress.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r--include/llvm/BasicBlock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index 7e7c9e7694..3336b3610d 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -74,6 +74,7 @@ public:
private:
InstListType InstList;
Function *Parent;
+ bool IsLandingPad;
void setParent(Function *parent);
friend class SymbolTableListTraits<BasicBlock, Function>;
@@ -138,6 +139,11 @@ public:
return const_cast<BasicBlock*>(this)->getFirstNonPHIOrDbg();
}
+ /// isLandingPad - True if this basic block is a landing pad for exception
+ /// handling.
+ bool isLandingPad() const { return IsLandingPad; }
+ void setIsLandingPad(bool Val = true) { IsLandingPad = Val; }
+
/// removeFromParent - This method unlinks 'this' from the containing
/// function, but does not delete it.
///