summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CppBackend
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-02-11 18:16:18 +0000
committerDouglas Gregor <dgregor@apple.com>2013-02-11 18:16:18 +0000
commitdcf25087917305dec7fc0d7ff7d438882a6cb727 (patch)
treeeb8a305bb272cb6d5472dca02f3c6712a4325936 /llvm/lib/Target/CppBackend
parentc92c8f06ec0dcee0bf6cc035bcd3eba34d15cb44 (diff)
downloadbcm5719-llvm-dcf25087917305dec7fc0d7ff7d438882a6cb727.tar.gz
bcm5719-llvm-dcf25087917305dec7fc0d7ff7d438882a6cb727.zip
[Modules] Cope better with top-level declarations loaded after being declared in the current translation unit <rdar://problem/13189985>.
These two related tweaks to keep the information associated with a given identifier correct when the identifier has been given some top-level information (say, a top-level declaration) and more information is then loaded from a module. The first ensures that an identifier that was "interesting" before being loaded from an AST is considered to be different from its on-disk counterpart. Otherwise, we lose such changes when writing the current translation unit as a module. Second, teach the code that injects AST-loaded names into the identifier chain for name lookup to keep the most recent declaration, so that we don't end up confusing our declaration chains by having a different declaration in there. llvm-svn: 174895
Diffstat (limited to 'llvm/lib/Target/CppBackend')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud