diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-04-17 09:10:43 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-04-17 09:10:43 +0000 |
commit | a762fa6c988001f61c1cc9ca2bf90eee19f08c33 (patch) | |
tree | 3574e298284af1faa3c23195ccd11b26b66c8411 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 634b6029834ffd661ecedaf53e727a689959f0e2 (diff) | |
download | llvm-a762fa6c988001f61c1cc9ca2bf90eee19f08c33.zip llvm-a762fa6c988001f61c1cc9ca2bf90eee19f08c33.tar.gz llvm-a762fa6c988001f61c1cc9ca2bf90eee19f08c33.tar.bz2 |
Revert r235154-r235156, they cause asserts when building win64 code (http://crbug.com/477988)
llvm-svn: 235170
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineModuleInfo.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 2352692a..e8bd1f8 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -461,23 +461,12 @@ void MachineModuleInfo::addCleanup(MachineBasicBlock *LandingPad) { LP.TypeIds.push_back(0); } -void MachineModuleInfo::addSEHCatchHandler(MachineBasicBlock *LandingPad, - const Function *Filter, - const BlockAddress *RecoverBA) { +MCSymbol * +MachineModuleInfo::addClauseForLandingPad(MachineBasicBlock *LandingPad) { + MCSymbol *ClauseLabel = Context.CreateTempSymbol(); LandingPadInfo &LP = getOrCreateLandingPadInfo(LandingPad); - SEHHandler Handler; - Handler.FilterOrFinally = Filter; - Handler.RecoverBA = RecoverBA; - LP.SEHHandlers.push_back(Handler); -} - -void MachineModuleInfo::addSEHCleanupHandler(MachineBasicBlock *LandingPad, - const Function *Cleanup) { - LandingPadInfo &LP = getOrCreateLandingPadInfo(LandingPad); - SEHHandler Handler; - Handler.FilterOrFinally = Cleanup; - Handler.RecoverBA = nullptr; - LP.SEHHandlers.push_back(Handler); + LP.ClauseLabels.push_back(ClauseLabel); + return ClauseLabel; } /// TidyLandingPads - Remap landing pad labels and remove any deleted landing |