diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-05 09:48:08 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-05 09:48:08 +0000 |
commit | 72b90571b1783b17c3f2204cec5ca440edc38bee (patch) | |
tree | a759b482778139e091bdea82a52414247cc30db2 /include/clang/Frontend | |
parent | 3f95477f28ef3baaf79001a5654785c8b2075710 (diff) |
Support #pragma weak for PCH.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend')
-rw-r--r-- | include/clang/Frontend/PCHBitCodes.h | 5 | ||||
-rw-r--r-- | include/clang/Frontend/PCHReader.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/Frontend/PCHBitCodes.h b/include/clang/Frontend/PCHBitCodes.h index a07060f800..37337963a1 100644 --- a/include/clang/Frontend/PCHBitCodes.h +++ b/include/clang/Frontend/PCHBitCodes.h @@ -250,7 +250,10 @@ namespace clang { REDECLS_UPDATE_LATEST = 29, /// \brief Record code for declarations that Sema keeps references of. - SEMA_DECL_REFS = 30 + SEMA_DECL_REFS = 30, + + /// \brief Record code for weak undeclared identifiers. + WEAK_UNDECLARED_IDENTIFIERS = 31 }; /// \brief Record types used within a source manager block. diff --git a/include/clang/Frontend/PCHReader.h b/include/clang/Frontend/PCHReader.h index f7690fbb21..76975a0e01 100644 --- a/include/clang/Frontend/PCHReader.h +++ b/include/clang/Frontend/PCHReader.h @@ -379,6 +379,9 @@ private: /// \brief The set of unused static functions stored in the the PCH /// file. llvm::SmallVector<uint64_t, 16> UnusedStaticFuncs; + + /// \brief The set of weak undeclared identifiers stored in the the PCH file. + llvm::SmallVector<uint64_t, 64> WeakUndeclaredIdentifiers; /// \brief The set of locally-scoped external declarations stored in /// the the PCH file. |