summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/FuncletLayout.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-06-01 00:03:21 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-06-01 00:03:21 +0000
commitd69acf3b4cd2c51ba4eb2a455fd6e9e3c0d92b4b (patch)
tree0789b5640ed9e69b4d43381d6b55f80ebec54ee2 /llvm/lib/CodeGen/FuncletLayout.cpp
parentd51fbfca46ca75ff70daba3661702257703a331b (diff)
downloadbcm5719-llvm-d69acf3b4cd2c51ba4eb2a455fd6e9e3c0d92b4b.tar.gz
bcm5719-llvm-d69acf3b4cd2c51ba4eb2a455fd6e9e3c0d92b4b.zip
Change ambiguous uses of term 'funclet' to 'EH scopes'. NFC.
Summary: `getEHScopeMembership()` function is used not only for funclet-based EHs; they apply to all EH schemes that use the scoped IR (catchpad/cleanuppad/...). D47005 (rL333045) changed some of the uses of the term 'funclet' to 'EH scopes' in case they apply to all scoped EH, and this fixes more of them. For `FuncletLayout` pass, I left it as is because the pass is only used for funclet-based EH. Reviewers: majnemer Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D47611 llvm-svn: 333711
Diffstat (limited to 'llvm/lib/CodeGen/FuncletLayout.cpp')
-rw-r--r--llvm/lib/CodeGen/FuncletLayout.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/FuncletLayout.cpp b/llvm/lib/CodeGen/FuncletLayout.cpp
index 67a4d1551c6..581cd423f2d 100644
--- a/llvm/lib/CodeGen/FuncletLayout.cpp
+++ b/llvm/lib/CodeGen/FuncletLayout.cpp
@@ -41,6 +41,9 @@ INITIALIZE_PASS(FuncletLayout, DEBUG_TYPE,
"Contiguously Lay Out Funclets", false, false)
bool FuncletLayout::runOnMachineFunction(MachineFunction &F) {
+ // Even though this gets information from getEHScopeMembership(), this pass is
+ // only necessary for funclet-based EH personalities, in which these EH scopes
+ // are outlined at the end.
DenseMap<const MachineBasicBlock *, int> FuncletMembership =
getEHScopeMembership(F);
if (FuncletMembership.empty())
OpenPOWER on IntegriCloud