зеркало из https://github.com/microsoft/clang-1.git
Don't emit name-lookup tables for functions or methods in the PCH files
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5aacb0edde
Коммит
58f06995ad
|
@ -1439,6 +1439,11 @@ uint64_t PCHWriter::WriteDeclContextVisibleBlock(ASTContext &Context,
|
|||
if (DC->getPrimaryContext() != DC)
|
||||
return 0;
|
||||
|
||||
// Since there is no name lookup into functions or methods, don't
|
||||
// bother to build a visible-declarations table.
|
||||
if (DC->isFunctionOrMethod())
|
||||
return 0;
|
||||
|
||||
// Force the DeclContext to build a its name-lookup table.
|
||||
DC->lookup(Context, DeclarationName());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче