diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2017-07-01 00:06:27 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2017-07-01 00:06:27 +0000 |
commit | 057c82cf25a0c8bd4150eb715310b1d74a538aac (patch) | |
tree | 34cd387011d23fc2b37f27f53b6435a3866412f2 /llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | |
parent | ad923425ac3e79e4b9722fcd9df3141b597314b7 (diff) | |
download | llvm-057c82cf25a0c8bd4150eb715310b1d74a538aac.zip llvm-057c82cf25a0c8bd4150eb715310b1d74a538aac.tar.gz llvm-057c82cf25a0c8bd4150eb715310b1d74a538aac.tar.bz2 |
Change enumerator default linkage type for C
Redeclaration lookup should never find hidden enumerators in C, because
they do not have linkage (C11 6.2.2/6)
The linkage of an enumerator should be VisibleNoLinkage, and
isHiddenDeclarationVisible should be checking hasExternalFormalLinkage.
This is was reviewed as part of D31778, but splitted into a different
commit for clarity.
rdar://problem/31909368
llvm-svn: 306917
Diffstat (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp')
0 files changed, 0 insertions, 0 deletions