diff options
author | James Y Knight <jyknight@google.com> | 2023-01-06 13:26:03 -0500 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2023-01-06 13:53:10 -0500 |
commit | 648ce3d358560c0f60340fcf28ad2563d213eca2 (patch) | |
tree | 2723d7b4233cf9393cadc3f3dfa0d70e56d30765 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 1ae36b1387e4d023cc00aaa6139bcd90b2e48ff4 (diff) | |
download | llvm-648ce3d358560c0f60340fcf28ad2563d213eca2.zip llvm-648ce3d358560c0f60340fcf28ad2563d213eca2.tar.gz llvm-648ce3d358560c0f60340fcf28ad2563d213eca2.tar.bz2 |
Cleanup unwind table emission code a bit.
This change removes the `tidyLandingPads` function, which previously
had a few responsibilities:
1. Dealing with the deletion of an invoke, after MachineFunction lowering.
2. Dealing with the deletion of a landing pad BB, after MachineFunction lowering.
3. Cleaning up the type-id list generated by `MachineFunction::addLandingPad`.
Case 3 has been fixed in the generator, and the others are now handled
during table emission.
This change also removes `MachineFunction`'s `addCatchTypeInfo`,
`addFilterTypeInfo`, and `addCleanup` helper fns, as they had a single
caller, and being outlined didn't make it simpler.
Finally, as calling `tidyLandingPads` was effectively the only thing
`DwarfCFIExceptionBase` did, that class has been eliminated.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions