aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
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.
///