diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-11-16 09:01:28 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-11-16 09:01:28 +0000 |
commit | 83709b1c1e149cd322eb45ac5efc5c40324dd2d2 (patch) | |
tree | 8540112c4650369e794f111f89b80e07a6619518 /llvm/lib/Transforms/IPO/MergeFunctions.cpp | |
parent | 7467461ccc092a786cc2c85a8ea36af6e8b1e2a7 (diff) | |
download | llvm-83709b1c1e149cd322eb45ac5efc5c40324dd2d2.zip llvm-83709b1c1e149cd322eb45ac5efc5c40324dd2d2.tar.gz llvm-83709b1c1e149cd322eb45ac5efc5c40324dd2d2.tar.bz2 |
Move helper classes into anonymous namespaces. NFC.
llvm-svn: 253189
Diffstat (limited to 'llvm/lib/Transforms/IPO/MergeFunctions.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/MergeFunctions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp index bb75ab6..fb37bcd 100644 --- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp +++ b/llvm/lib/Transforms/IPO/MergeFunctions.cpp @@ -1249,6 +1249,7 @@ int FunctionComparator::compare() { return 0; } +namespace { // Accumulate the hash of a sequence of 64-bit integers. This is similar to a // hash of a sequence of 64bit ints, but the entire input does not need to be // available at once. This interface is necessary for functionHash because it @@ -1267,6 +1268,7 @@ public: // No finishing is required, because the entire hash value is used. uint64_t getHash() { return Hash; } }; +} // end anonymous namespace // A function hash is calculated by considering only the number of arguments and // whether a function is varargs, the order of basic blocks (given by the |