From d69acf3b4cd2c51ba4eb2a455fd6e9e3c0d92b4b Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Fri, 1 Jun 2018 00:03:21 +0000 Subject: 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 --- llvm/lib/CodeGen/FuncletLayout.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/CodeGen/FuncletLayout.cpp') 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 FuncletMembership = getEHScopeMembership(F); if (FuncletMembership.empty()) -- cgit v1.2.3