aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-02-18 15:53:43 +0000
committerDouglas Gregor <dgregor@apple.com>2013-02-18 15:53:43 +0000
commit6168bd2323cdf2ff1dc4174c6fc4cd6a479f001b (patch)
treea03e28f83a781867f322b1d080f62c0ebfd7f4c2 /clang/lib/Frontend/CompilerInvocation.cpp
parent1ce13f553ee36acca05d356f4bcd24d36c5df52f (diff)
downloadllvm-6168bd2323cdf2ff1dc4174c6fc4cd6a479f001b.zip
llvm-6168bd2323cdf2ff1dc4174c6fc4cd6a479f001b.tar.gz
llvm-6168bd2323cdf2ff1dc4174c6fc4cd6a479f001b.tar.bz2
Ensure that the identifier chains have the most recent declaration after module deserialization.
This commit introduces a set of related changes to ensure that the declaration that shows up in the identifier chain after deserializing declarations with a given identifier is, in fact, the most recent declaration. The primary change involves waiting until after we deserialize and wire up redeclaration chains before updating the identifier chains. There is a minor optimization in here to avoid recursively deserializing names as part of looking to see whether top-level declarations for a given name exist. A related change that became suddenly more urgent is to property record a merged declaration when an entity first declared in the current translation unit is later deserialized from a module (that had not been loaded at the time of the original declaration). Since we key off the canonical declaration (which is parsed, not from an AST file) for emitted redeclarations, we simply record this as a merged declaration during AST writing and let the readers merge them. Re-fixes <rdar://problem/13189985>, presumably for good this time. llvm-svn: 175447
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions