summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-11-24 14:55:41 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-11-24 14:55:41 +0000
commit51ebcaaf258ee206c6e7179a6803ef4e13e32a2e (patch)
treeaf8e8561b1d1c720d55fd48ed46f9572b68f094e /llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
parent72bac8f33716a8f38fab7acca4145d9c989d14d0 (diff)
downloadbcm5719-llvm-51ebcaaf258ee206c6e7179a6803ef4e13e32a2e.tar.gz
bcm5719-llvm-51ebcaaf258ee206c6e7179a6803ef4e13e32a2e.zip
Make helpers static. NFC.
llvm-svn: 318953
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp8
1 files changed, 4 insertions, 4 deletions
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<BasicBlock *, 4> &Worklist,
- SmallVectorImpl<DomTreeNode *> &DomNodes,
- SmallPtrSetImpl<BasicBlock *> &DomSet) {
+static void appendDomFrontier(DomTreeNode *Node,
+ SmallSetVector<BasicBlock *, 4> &Worklist,
+ SmallVectorImpl<DomTreeNode *> &DomNodes,
+ SmallPtrSetImpl<BasicBlock *> &DomSet) {
assert(DomNodes.empty() && "Must start with no dominator nodes.");
assert(DomSet.empty() && "Must start with an empty dominator set.");
OpenPOWER on IntegriCloud