aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-08-06 11:13:10 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-08-06 11:13:10 +0000
commitb7d3311c77f5785ebf6e4749a7ad1ec00381570e (patch)
treee482263f25969ba10beedebe2eae61c2023f0c9d /llvm/lib/Transforms/Utils/Local.cpp
parent70c93fa69a755472e9ddd83afe3513729c353eb5 (diff)
downloadllvm-b7d3311c77f5785ebf6e4749a7ad1ec00381570e.zip
llvm-b7d3311c77f5785ebf6e4749a7ad1ec00381570e.tar.gz
llvm-b7d3311c77f5785ebf6e4749a7ad1ec00381570e.tar.bz2
Move helpers into anonymous namespaces. NFC.
llvm-svn: 277916
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 3148bae..987460b 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1703,6 +1703,7 @@ bool llvm::callsGCLeafFunction(ImmutableCallSite CS) {
return false;
}
+namespace {
/// A potential constituent of a bitreverse or bswap expression. See
/// collectBitParts for a fuller explanation.
struct BitPart {
@@ -1718,6 +1719,7 @@ struct BitPart {
enum { Unset = -1 };
};
+} // end anonymous namespace
/// Analyze the specified subexpression and see if it is capable of providing
/// pieces of a bswap or bitreverse. The subexpression provides a potential