diff options
Diffstat (limited to 'llvm/lib/CodeGen/FuncletLayout.cpp')
-rw-r--r-- | llvm/lib/CodeGen/FuncletLayout.cpp | 3 |
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()) |