aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-15 16:58:34 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-15 16:58:34 +0000
commit2171bf1caba4d4b9eeb6a91efac4300b41f38b07 (patch)
tree98cfad2375715b064a068eb3cf8a527a1e88946e /lib/CodeGen/CGExprComplex.cpp
parent3419d7cd2e4a4dcd2a88381deb5d83eb946a2b93 (diff)
Completely re-implement (de-)serialization of redeclaration
chains, again. The prior implementation was very linked-list oriented, and the list-splicing logic was both fairly convoluted (when loading from multiple modules) and failed to preserve a reasonable ordering for the redeclaration chains. This new implementation uses a simpler strategy, where we store the ordered redeclaration chains in an array-like structure (indexed based on the first declaration), and use that ordering to add individual deserialized declarations to the end of the existing chain. That way, the chain mimics the ordering from its modules, and a bug somewhere is far less likely to result in a broken linked list. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions