diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-07-10 11:28:51 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-07-10 11:28:51 +0000 |
commit | 4d09892e9a6dcfaff5854dcf134e5dacfafadcd3 (patch) | |
tree | b1e6a281dc0ffd3f4148fc9ba1b502448546a639 /llvm/lib/Transforms/Scalar/LoopRotation.cpp | |
parent | da5b4cc3395ea0489bcd6623521bc793b5f53742 (diff) | |
download | bcm5719-llvm-4d09892e9a6dcfaff5854dcf134e5dacfafadcd3.tar.gz bcm5719-llvm-4d09892e9a6dcfaff5854dcf134e5dacfafadcd3.zip |
Give helper classes/functions internal linkage. NFC.
llvm-svn: 275014
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopRotation.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopRotation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp index 549248fbf73..7a06a25a707 100644 --- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp +++ b/llvm/lib/Transforms/Scalar/LoopRotation.cpp @@ -49,6 +49,7 @@ static cl::opt<unsigned> DefaultRotationThreshold( STATISTIC(NumRotated, "Number of loops rotated"); +namespace { /// A simple loop rotation transformation. class LoopRotate { const unsigned MaxHeaderSize; @@ -70,6 +71,7 @@ private: bool rotateLoop(Loop *L, bool SimplifiedLatch); bool simplifyLoopLatch(Loop *L); }; +} // end anonymous namespace /// RewriteUsesOfClonedInstructions - We just cloned the instructions from the /// old header into the preheader. If there were uses of the values produced by |