summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-08-02 01:09:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-08-02 01:09:12 +0000
commit1888b910a5512262228e785cc9caf90296c06a45 (patch)
tree7b7a7d90f43da72eea1408fc45842892c320b360 /lib/CodeGen/ModuleBuilder.cpp
parentac8b5f53d4646b4f76565a03ae2a85b6c67cdcc1 (diff)
downloadclang-1888b910a5512262228e785cc9caf90296c06a45.tar.gz
clang-1888b910a5512262228e785cc9caf90296c06a45.tar.bz2
clang-1888b910a5512262228e785cc9caf90296c06a45.tar.xz
When merging redeclaration chains across modules, if a declaration is visible
in one module but is only declared as a friend in another module, keep it visible in the result of the merge. This is incomplete on two axes: 1) Our handling of local extern declarations is basically broken (we put them in the wrong decl context, and don't find them in redeclaration lookup, unless they've previously been declared), and this results in them making friends visible after a merge. 2) Eventually we'll need to mark that this has happened, and more carefully check whether a declaration should be visible if it was only visible in some of the modules in which it was declared. Fortunately it's rare for the identifier namespace of a declaration to change along its redeclaration chain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions