[llvm] 21c1a0c - Test Commit: add two head comments in WinEHPrepare.cpp

Ten Tzen via llvm-commits llvm-commits at lists.llvm.org
Sun May 3 01:19:25 PDT 2020


Author: Ten Tzen
Date: 2020-05-03T01:15:59-07:00
New Revision: 21c1a0c7309aa4bd25df5dc6cd09287408912304

URL: https://github.com/llvm/llvm-project/commit/21c1a0c7309aa4bd25df5dc6cd09287408912304
DIFF: https://github.com/llvm/llvm-project/commit/21c1a0c7309aa4bd25df5dc6cd09287408912304.diff

LOG: Test Commit: add two head comments in WinEHPrepare.cpp

This is a Test commit.

Added: 
    

Modified: 
    llvm/lib/CodeGen/WinEHPrepare.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp
index cb75cd66a847..c9c1bf84ab30 100644
--- a/llvm/lib/CodeGen/WinEHPrepare.cpp
+++ b/llvm/lib/CodeGen/WinEHPrepare.cpp
@@ -234,6 +234,9 @@ static const BasicBlock *getEHPadFromPredecessor(const BasicBlock *BB,
   return CleanupPad->getParent();
 }
 
+// Starting from a EHPad, Backward walk through control-flow graph
+// to produce two primary outputs:
+//      FuncInfo.EHPadStateMap[] and FuncInfo.CxxUnwindMap[]
 static void calculateCXXStateNumbers(WinEHFuncInfo &FuncInfo,
                                      const Instruction *FirstNonPHI,
                                      int ParentState) {
@@ -336,6 +339,9 @@ static int addSEHFinally(WinEHFuncInfo &FuncInfo, int ParentState,
   return FuncInfo.SEHUnwindMap.size() - 1;
 }
 
+// Starting from a EHPad, Backward walk through control-flow graph
+// to produce two primary outputs:
+//      FuncInfo.EHPadStateMap[] and FuncInfo.SEHUnwindMap[]
 static void calculateSEHStateNumbers(WinEHFuncInfo &FuncInfo,
                                      const Instruction *FirstNonPHI,
                                      int ParentState) {


        


More information about the llvm-commits mailing list