зеркало из https://github.com/microsoft/clang-1.git
0af2ca4b6d
file needs to store. CodeGen needs to see these definitions (via HandleTopLevelDecl), otherwise it won't be able to generate code for them. This patch notifies the consumer (e.g., CodeGen) about function definitions and variable definitions when the corresponding declarations are deserialized. Hence, we don't eagerly deserialize the declarations for every variable or function that has a definition in the PCH file. This gives another 5% speedup for the Carbon-prefixed "Hello, World!", and brings our PCH statistics down to something far more reasonable: *** PCH Statistics: 13/20693 types read (0.062823%) 17/59230 declarations read (0.028702%) 54/44914 identifiers read (0.120230%) 0/32954 statements read (0.000000%) 5/6187 macros read (0.080815%) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69820 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
FixItRewriter.cpp | ||
HTMLDiagnostics.cpp | ||
InitHeaderSearch.cpp | ||
InitPreprocessor.cpp | ||
Makefile | ||
ManagerRegistry.cpp | ||
PCHReader.cpp | ||
PCHWriter.cpp | ||
PlistDiagnostics.cpp | ||
TextDiagnosticBuffer.cpp | ||
TextDiagnosticPrinter.cpp |