commit | d85b5b9b8fcf53906d9a61649b3657ca0d902017 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Wed Nov 25 22:24:25 2009 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Wed Nov 25 22:24:25 2009 +0000 |
tree | 4c7551b9d56f064196b368224ea44e6b332e60a6 | |
parent | 66078610be5e4319de02efa283b07887c73c2e27 [diff] |
Implement the rules in C++ [basic.link] and C99 6.2.2 for computing the linkage of a declaration. Switch the lame (and completely wrong) NamedDecl::hasLinkage() over to using the new NamedDecl::getLinkage(), along with the "can this declaration be a template argument?" check that started all of this. Fixes -fsyntax-only for PR5597. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89891 91177308-0d34-0410-b5e6-96231b3b80d8