[llvm] r248278 - Make helper function static. NFC.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 07:34:57 PDT 2015


Author: d0k
Date: Tue Sep 22 09:34:57 2015
New Revision: 248278

URL: http://llvm.org/viewvc/llvm-project?rev=248278&view=rev
Log:
Make helper function static. NFC.

Modified:
    llvm/trunk/lib/CodeGen/WinEHPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=248278&r1=248277&r2=248278&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Tue Sep 22 09:34:57 2015
@@ -2638,9 +2638,9 @@ static const CatchPadInst *getSingleCatc
 ///         to label %catch.B unwind label %endcatches
 ///   %endcatches
 ///     catchendblock unwind to caller
-void findCatchPadsForCatchEndPad(
-    const BasicBlock *CatchEndBB,
-    SmallVectorImpl<const CatchPadInst *> &Handlers) {
+static void
+findCatchPadsForCatchEndPad(const BasicBlock *CatchEndBB,
+                            SmallVectorImpl<const CatchPadInst *> &Handlers) {
   const CatchPadInst *CPI = getSingleCatchPadPredecessor(CatchEndBB);
   while (CPI) {
     Handlers.push_back(CPI);




More information about the llvm-commits mailing list