We have llvm::addLandingPadInfo and MachineFunction::addLandingPad,
both of which add landing pad information to populate LandingPadInfo
but are called from different locations, which was confusing. This patch
unifies them with one MachineFunction::addLandingPad function, which
now has functionlities of both functions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/CodeGen/MachineFunction.cpp | ||
---|---|---|
661 ↗ | (On Diff #166718) | A followup patch for wasm exception handling will fill in this part. I have this else if statement just to make sure code structure is there. |
Comment Actions
Looks good to me.
lib/CodeGen/MachineFunction.cpp | ||
---|---|---|
632–633 ↗ | (On Diff #166718) | We can simplify this to dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()), now that personalities live on the parent function, not the landingpad. |
639–641 ↗ | (On Diff #166718) | This comment is scary, but pre-existing, so I guess let's not worry about it. |