mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 22:17:23 +08:00
Baby step towards supporting namespaces in chained PCH.
llvm-svn: 111878
This commit is contained in:
@@ -311,7 +311,12 @@ namespace clang {
|
||||
/// If a declaration is modified after having been deserialized, and then
|
||||
/// written to a dependent AST file, its ID and offset must be added to
|
||||
/// the replacement block.
|
||||
DECL_REPLACEMENTS = 33
|
||||
DECL_REPLACEMENTS = 33,
|
||||
|
||||
/// \brief Record code for an update to a decl context's lookup table.
|
||||
///
|
||||
/// In practice, this should only be used for the TU and namespaces.
|
||||
UPDATE_VISIBLE = 34
|
||||
};
|
||||
|
||||
/// \brief Record types used within a source manager block.
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
// This file defines the ASTReader class, which reads AST files.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
|
||||
#ifndef LLVM_CLANG_FRONTEND_AST_READER_H
|
||||
#define LLVM_CLANG_FRONTEND_AST_READER_H
|
||||
|
||||
|
||||
@@ -3210,7 +3210,7 @@ ASTReader::FindExternalVisibleDeclsByName(const DeclContext *DC,
|
||||
DeclContext::lookup_iterator(0));
|
||||
|
||||
llvm::SmallVector<NamedDecl *, 64> Decls;
|
||||
// There might be lexical decls in multiple parts of the chain, for the TU
|
||||
// There might be visible decls in multiple parts of the chain, for the TU
|
||||
// and namespaces.
|
||||
DeclContextInfos &Infos = DeclContextOffsets[DC];
|
||||
for (DeclContextInfos::iterator I = Infos.begin(), E = Infos.end();
|
||||
|
||||
Reference in New Issue
Block a user