summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTCommon.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-09-05 00:02:25 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-09-05 00:02:25 +0000
commit276dd188c428d4fb1b3e887fe70a929a71892bf9 (patch)
treeeb49076c4c96fbb6f2efe12c9410cfe119af18e0 /clang/lib/Serialization/ASTCommon.h
parent5c30024fd42868e0850cec1e822671187315c8df (diff)
downloadbcm5719-llvm-276dd188c428d4fb1b3e887fe70a929a71892bf9.tar.gz
bcm5719-llvm-276dd188c428d4fb1b3e887fe70a929a71892bf9.zip
Note when a decl is used in AST files.
When an AST file is built based on another AST file, it can use a decl from the fist file, and therefore mark the "isUsed" bit. We need to note this in the AST file so that the bit is set correctly when the second AST file is loaded. This patch introduces the distinction between setIsUsed() and markUsed() so that we don't call into the ASTMutationListener callback when it wouldn't be appropriate. Fixes PR16635. llvm-svn: 190016
Diffstat (limited to 'clang/lib/Serialization/ASTCommon.h')
-rw-r--r--clang/lib/Serialization/ASTCommon.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTCommon.h b/clang/lib/Serialization/ASTCommon.h
index fa3ef58a1c0..ef81e690324 100644
--- a/clang/lib/Serialization/ASTCommon.h
+++ b/clang/lib/Serialization/ASTCommon.h
@@ -26,7 +26,8 @@ enum DeclUpdateKind {
UPD_CXX_ADDED_TEMPLATE_SPECIALIZATION,
UPD_CXX_ADDED_ANONYMOUS_NAMESPACE,
UPD_CXX_INSTANTIATED_STATIC_DATA_MEMBER,
- UPD_CXX_DEDUCED_RETURN_TYPE
+ UPD_CXX_DEDUCED_RETURN_TYPE,
+ UPD_DECL_MARKED_USED
};
TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT);
OpenPOWER on IntegriCloud