From 52f6ed099cba5c67bbcc8f993a6ed29d124ccce5 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Mon, 16 Jan 2023 18:15:01 -0500 Subject: Move Personalities array from MachineModuleInfo to DwarfCFIException. It was only ever used there, already. The previous location seems left-over from when the personality function was specified on a per-landingpad basis, instead of per-function. --- llvm/lib/CodeGen/MachineFunction.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index ba73abd9f3d9..d70af8bd11f8 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -759,10 +759,6 @@ MCSymbol *MachineFunction::addLandingPad(MachineBasicBlock *LandingPad) { const Instruction *FirstI = LandingPad->getBasicBlock()->getFirstNonPHI(); if (const auto *LPI = dyn_cast(FirstI)) { - if (const auto *PF = - dyn_cast(F.getPersonalityFn()->stripPointerCasts())) - getMMI().addPersonality(PF); - // If there's no typeid list specified, then "cleanup" is implicit. // Otherwise, id 0 is reserved for the cleanup action. if (LPI->isCleanup() && LPI->getNumClauses() != 0) -- cgit v1.2.3