diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/BasicBlock.h | 6 | ||||
-rw-r--r-- | include/llvm/Bitcode/LLVMBitCodes.h | 5 |
2 files changed, 9 insertions, 2 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. /// diff --git a/include/llvm/Bitcode/LLVMBitCodes.h b/include/llvm/Bitcode/LLVMBitCodes.h index 7692bd2872..dcfbe5a6b4 100644 --- a/include/llvm/Bitcode/LLVMBitCodes.h +++ b/include/llvm/Bitcode/LLVMBitCodes.h @@ -106,8 +106,9 @@ namespace bitc { // The value symbol table only has one code (VST_ENTRY_CODE). enum ValueSymtabCodes { - VST_CODE_ENTRY = 1, // VST_ENTRY: [valid, namechar x N] - VST_CODE_BBENTRY = 2 // VST_BBENTRY: [bbid, namechar x N] + VST_CODE_ENTRY = 1, // VST_ENTRY: [valid, namechar x N] + VST_CODE_BBENTRY = 2, // VST_BBENTRY: [bbid, namechar x N] + VST_CODE_LPADENTRY = 3 // VST_LPADENTRY: [lpadid, namechar x N] }; enum MetadataCodes { |