From 1fc0da48499fec0a18e790390879edcd41433d31 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 4 Apr 2018 11:45:11 +0000 Subject: Make helpers static. NFC. llvm-svn: 329170 --- llvm/lib/Analysis/MustExecute.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/MustExecute.cpp') diff --git a/llvm/lib/Analysis/MustExecute.cpp b/llvm/lib/Analysis/MustExecute.cpp index c044e28c6ba..ece4a1695cf 100644 --- a/llvm/lib/Analysis/MustExecute.cpp +++ b/llvm/lib/Analysis/MustExecute.cpp @@ -184,7 +184,7 @@ FunctionPass *llvm::createMustExecutePrinter() { return new MustExecutePrinter(); } -bool isMustExecuteIn(const Instruction &I, Loop *L, DominatorTree *DT) { +static bool isMustExecuteIn(const Instruction &I, Loop *L, DominatorTree *DT) { // TODO: merge these two routines. For the moment, we display the best // result obtained by *either* implementation. This is a bit unfair since no // caller actually gets the full power at the moment. @@ -194,6 +194,7 @@ bool isMustExecuteIn(const Instruction &I, Loop *L, DominatorTree *DT) { isGuaranteedToExecuteForEveryIteration(&I, L); } +namespace { /// \brief An assembly annotator class to print must execute information in /// comments. class MustExecuteAnnotatedWriter : public AssemblyAnnotationWriter { @@ -248,6 +249,7 @@ public: OS << ")"; } }; +} // namespace bool MustExecutePrinter::runOnFunction(Function &F) { auto &LI = getAnalysis().getLoopInfo(); -- cgit v1.2.3