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
- Build Status
Buildable 23028 Build 23027: arc lint + arc unit
Event Timeline
lib/CodeGen/MachineFunction.cpp | ||
---|---|---|
661 | 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. |
We can simplify this to dyn_cast<Function>(F.getPersonalityFn()->stripPointerCasts()), now that personalities live on the parent function, not the landingpad.