diff options
author | James Y Knight <jyknight@google.com> | 2023-01-16 18:15:01 -0500 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2023-01-16 18:15:01 -0500 |
commit | 52f6ed099cba5c67bbcc8f993a6ed29d124ccce5 (patch) | |
tree | 1cabf254152363d6b918862b0e7c952ce89a5351 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | a1551fdd4888790c65a108e47a7713d8f6837483 (diff) | |
download | llvm-52f6ed099cba5c67bbcc8f993a6ed29d124ccce5.zip llvm-52f6ed099cba5c67bbcc8f993a6ed29d124ccce5.tar.gz llvm-52f6ed099cba5c67bbcc8f993a6ed29d124ccce5.tar.bz2 |
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.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index ba73abd..d70af8b 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<LandingPadInst>(FirstI)) { - if (const auto *PF = - dyn_cast<Function>(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) |