diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-08-06 11:13:10 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-08-06 11:13:10 +0000 |
commit | b7d3311c77f5785ebf6e4749a7ad1ec00381570e (patch) | |
tree | e482263f25969ba10beedebe2eae61c2023f0c9d /llvm/lib/Transforms/Utils/NameAnonFunctions.cpp | |
parent | 70c93fa69a755472e9ddd83afe3513729c353eb5 (diff) | |
download | llvm-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/NameAnonFunctions.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/NameAnonFunctions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/NameAnonFunctions.cpp b/llvm/lib/Transforms/Utils/NameAnonFunctions.cpp index c4f3839..6629ab8 100644 --- a/llvm/lib/Transforms/Utils/NameAnonFunctions.cpp +++ b/llvm/lib/Transforms/Utils/NameAnonFunctions.cpp @@ -19,6 +19,7 @@ using namespace llvm; +namespace { // Compute a "unique" hash for the module based on the name of the public // functions. class ModuleHasher { @@ -57,6 +58,7 @@ public: return TheHash; } }; +} // end anonymous namespace // Rename all the anon functions in the module bool llvm::nameUnamedFunctions(Module &M) { |