]> granicus.if.org Git - clang/commit
Optimize serialized representation of redeclarable declarations for
authorDouglas Gregor <dgregor@apple.com>
Mon, 19 Dec 2011 15:27:36 +0000 (15:27 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 19 Dec 2011 15:27:36 +0000 (15:27 +0000)
commitecb19382e1041f4e90f44c541173b85e4f328b84
treefe26c126b0c5a23fd735a05810a4c572e03b0a0f
parent68d7bb97fc8574bb6708c4a7dc89486a895c4114
Optimize serialized representation of redeclarable declarations for
which there are no redeclarations. This reduced by size of the PCH
file for Cocoa.h by ~650k: ~536k of that was in the new
LOCAL_REDECLARATIONS table, which went from a ridiculous 540k down to
an acceptable 3.5k, while the rest was due to the more compact
abbreviated representation of redeclarable declaration kinds (which no
longer need to store the 'first' declaration ID).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146869 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp
test/Modules/Inputs/redecl-merge-bottom.h
test/Modules/Inputs/redecl-merge-left.h
test/Modules/Inputs/redecl-merge-right.h
test/Modules/Inputs/redecl-merge-top.h
test/Modules/redecl-merge.m