From 51ebcaaf258ee206c6e7179a6803ef4e13e32a2e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 24 Nov 2017 14:55:41 +0000 Subject: Make helpers static. NFC. llvm-svn: 318953 --- llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp') diff --git a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp index 5cfd3cd7651..3d0fca0bc3a 100644 --- a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp @@ -136,10 +136,10 @@ static bool updateIDomWithKnownCommonDominator(BasicBlock *BB, // FIXME: Neither of these issues are a big deal and could be addressed with // some amount of refactoring of IDFCalculator. That would allow us to share // the core logic here (which is solving the same core problem). -void appendDomFrontier(DomTreeNode *Node, - SmallSetVector &Worklist, - SmallVectorImpl &DomNodes, - SmallPtrSetImpl &DomSet) { +static void appendDomFrontier(DomTreeNode *Node, + SmallSetVector &Worklist, + SmallVectorImpl &DomNodes, + SmallPtrSetImpl &DomSet) { assert(DomNodes.empty() && "Must start with no dominator nodes."); assert(DomSet.empty() && "Must start with an empty dominator set."); -- cgit v1.2.3