summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ODRHash.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-08-20 13:02:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-08-20 13:02:57 +0000
commitbffdf4ce939f0764713d0f3e1e811128bd4592e3 (patch)
treef7dc9646bf4dc6071d7476093b3371db101f4476 /clang/lib/AST/ODRHash.cpp
parentf58f838495200ed71596d260f7c6e25d1b080fcb (diff)
downloadbcm5719-llvm-bffdf4ce939f0764713d0f3e1e811128bd4592e3.tar.gz
bcm5719-llvm-bffdf4ce939f0764713d0f3e1e811128bd4592e3.zip
[ODRHash] Move into anonymous namespace. NFC.
llvm-svn: 311286
Diffstat (limited to 'clang/lib/AST/ODRHash.cpp')
-rw-r--r--clang/lib/AST/ODRHash.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/ODRHash.cpp b/clang/lib/AST/ODRHash.cpp
index 121724a7315..c968a55adf1 100644
--- a/clang/lib/AST/ODRHash.cpp
+++ b/clang/lib/AST/ODRHash.cpp
@@ -199,6 +199,7 @@ unsigned ODRHash::CalculateHash() {
return ID.ComputeHash();
}
+namespace {
// Process a Decl pointer. Add* methods call back into ODRHash while Visit*
// methods process the relevant parts of the Decl.
class ODRDeclVisitor : public ConstDeclVisitor<ODRDeclVisitor> {
@@ -343,6 +344,7 @@ public:
}
}
};
+} // namespace
// Only allow a small portion of Decl's to be processed. Remove this once
// all Decl's can be handled.
@@ -420,6 +422,7 @@ void ODRHash::AddDecl(const Decl *D) {
}
}
+namespace {
// Process a Type pointer. Add* methods call back into ODRHash while Visit*
// methods process the relevant parts of the Type.
class ODRTypeVisitor : public TypeVisitor<ODRTypeVisitor> {
@@ -608,6 +611,7 @@ public:
AddDecl(T->getDecl());
}
};
+} // namespace
void ODRHash::AddType(const Type *T) {
assert(T && "Expecting non-null pointer.");
OpenPOWER on IntegriCloud