aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineModuleInfo.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2007-03-01 20:25:32 +0000
committerJim Laskey <jlaskey@mac.com>2007-03-01 20:25:32 +0000
commit59e8434a855737ce3324e4b1acf5e9f12b57a2fc (patch)
tree7c3b400a7b49231843f6d75fb83d247131f5e442 /include/llvm/CodeGen/MachineModuleInfo.h
parente2a6acd13f4c9ce5eb1d690a4c9d168fc8661d6c (diff)
Collect eh filter info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineModuleInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h
index f1c7100377..28201dcfdc 100644
--- a/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/include/llvm/CodeGen/MachineModuleInfo.h
@@ -960,6 +960,8 @@ struct LandingPadInfo {
unsigned LandingPadLabel; // Label at beginning of landing pad.
Function *Personality; // Personality function.
std::vector<unsigned> TypeIds; // List of type ids.
+ bool IsFilter; // Indicate if the landing pad is a
+ // throw filter.
LandingPadInfo(MachineBasicBlock *MBB)
: LandingPadBlock(MBB)
@@ -967,6 +969,7 @@ struct LandingPadInfo {
, EndLabel(0)
, LandingPadLabel(0)
, TypeIds()
+ , IsFilter(false)
{}
};
@@ -1202,6 +1205,10 @@ public:
void addCatchTypeInfo(MachineBasicBlock *LandingPad,
std::vector<GlobalVariable *> &TyInfo);
+ /// setIsFilterLandingPad - Indicates that the landing pad is a throw filter.
+ ///
+ void setIsFilterLandingPad(MachineBasicBlock *LandingPad);
+
/// getTypeIDFor - Return the type id for the specified typeinfo. This is
/// function wide.
unsigned getTypeIDFor(GlobalVariable *TI);