diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2018-04-04 11:45:11 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2018-04-04 11:45:11 +0000 |
commit | 1fc0da48499fec0a18e790390879edcd41433d31 (patch) | |
tree | ce308572ba209cf89aaf1c77c67650827ca795e2 /llvm/lib/Analysis/MustExecute.cpp | |
parent | ac74acdefed9af2751d323bacef7ac47982957e8 (diff) | |
download | bcm5719-llvm-1fc0da48499fec0a18e790390879edcd41433d31.tar.gz bcm5719-llvm-1fc0da48499fec0a18e790390879edcd41433d31.zip |
Make helpers static. NFC.
llvm-svn: 329170
Diffstat (limited to 'llvm/lib/Analysis/MustExecute.cpp')
-rw-r--r-- | llvm/lib/Analysis/MustExecute.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<LoopInfoWrapperPass>().getLoopInfo(); |