summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTCommon.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-21 16:16:40 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-21 16:16:40 +0000
commitfe732d538fdca72728b809d8c943d1e411d81405 (patch)
tree7d4bb4d3c82e5ed743674fcfbaad8a5487cbd8c1 /clang/lib/Serialization/ASTCommon.h
parentc9b903138d8a3db151e90e8c3099ff005a4a5244 (diff)
downloadbcm5719-llvm-fe732d538fdca72728b809d8c943d1e411d81405.tar.gz
bcm5719-llvm-fe732d538fdca72728b809d8c943d1e411d81405.zip
When deserializing a declaration, don't look for redeclarations if its
kind indicates that it can never be redeclared. Good for a 1% speedup, and redeclaration searching drops off the profile. llvm-svn: 173054
Diffstat (limited to 'clang/lib/Serialization/ASTCommon.h')
-rw-r--r--clang/lib/Serialization/ASTCommon.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTCommon.h b/clang/lib/Serialization/ASTCommon.h
index f9db1f0f94d..d9308542312 100644
--- a/clang/lib/Serialization/ASTCommon.h
+++ b/clang/lib/Serialization/ASTCommon.h
@@ -70,6 +70,9 @@ unsigned ComputeHash(Selector Sel);
/// multiple definitions.
const Decl *getDefinitiveDeclContext(const DeclContext *DC);
+/// \brief Determine whether the given declaration kind is redeclarable.
+bool isRedeclarableDeclKind(unsigned Kind);
+
} // namespace serialization
} // namespace clang
OpenPOWER on IntegriCloud