diff options
author | Reid Kleckner <rnk@google.com> | 2015-08-31 20:02:16 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2015-08-31 20:02:16 +0000 |
commit | e00faf8ce17a6ec31117a1dedb8ae506883d8232 (patch) | |
tree | 2c49aafbec193b096d78d7350aefa447341b5b4a /llvm/lib/CodeGen/AsmPrinter/ARMException.cpp | |
parent | 5f912d3797bc253a86712e2677cd3d983d81de55 (diff) | |
download | llvm-e00faf8ce17a6ec31117a1dedb8ae506883d8232.zip llvm-e00faf8ce17a6ec31117a1dedb8ae506883d8232.tar.gz llvm-e00faf8ce17a6ec31117a1dedb8ae506883d8232.tar.bz2 |
[EH] Handle non-Function personalities like unknown personalities
Also delete and simplify a lot of MachineModuleInfo code that used to be
needed to handle personalities on landingpads. Now that the personality
is on the LLVM Function, we no longer need to track it this way on MMI.
Certainly it should not live on LandingPadInfo.
llvm-svn: 246478
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/ARMException.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/ARMException.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp index 462e5d1..ade2d71 100644 --- a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp @@ -73,7 +73,6 @@ void ARMException::endFunction(const MachineFunction *MF) { const Function *Per = nullptr; if (F->hasPersonalityFn()) Per = dyn_cast<Function>(F->getPersonalityFn()->stripPointerCasts()); - assert(!MMI->getPersonality() || Per == MMI->getPersonality()); bool forceEmitPersonality = F->hasPersonalityFn() && !isNoOpWithoutInvoke(classifyEHPersonality(Per)) && F->needsUnwindTableEntry(); |