Unify landing pad information adding routines (NFC)
authorHeejin Ahn <aheejin@gmail.com>
Tue, 25 Sep 2018 19:56:44 +0000 (19:56 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Tue, 25 Sep 2018 19:56:44 +0000 (19:56 +0000)
commite41be38efd9465d34a701476de455395f3512799
tree331baa7433af05fef51274189d2199d360c8e1aa
parente38c7f8d969779d2a1513a3a1809d05aa2160db5
Unify landing pad information adding routines (NFC)

Summary:
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.

Reviewers: rnk

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D52428

llvm-svn: 343018
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/MachineFunction.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp