diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-04-23 18:34:01 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-04-23 18:34:01 +0000 |
commit | 909ea7e6b87844e1b95fa66d8fb8ed2eeaf495e9 (patch) | |
tree | ab06b5219018b590dccd5e5b7c882aa1ab599804 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 7c5cb066d091eed948d0ef10bb15b9def37b81ab (diff) | |
download | bcm5719-llvm-909ea7e6b87844e1b95fa66d8fb8ed2eeaf495e9.tar.gz bcm5719-llvm-909ea7e6b87844e1b95fa66d8fb8ed2eeaf495e9.zip |
Revert "[SEH] Remove the old __C_specific_handler code now that WinEHPrepare works"
We still have some "uses remain after removal" issues in -O0 builds.
This reverts commit r235557.
llvm-svn: 235617
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineModuleInfo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 2352692aca5..e4f2aea287f 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -461,6 +461,14 @@ void MachineModuleInfo::addCleanup(MachineBasicBlock *LandingPad) { LP.TypeIds.push_back(0); } +MCSymbol * +MachineModuleInfo::addClauseForLandingPad(MachineBasicBlock *LandingPad) { + MCSymbol *ClauseLabel = Context.CreateTempSymbol(); + LandingPadInfo &LP = getOrCreateLandingPadInfo(LandingPad); + LP.ClauseLabels.push_back(ClauseLabel); + return ClauseLabel; +} + void MachineModuleInfo::addSEHCatchHandler(MachineBasicBlock *LandingPad, const Function *Filter, const BlockAddress *RecoverBA) { |