diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-13 00:12:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-13 00:12:11 +0000 |
commit | 181e3ecc0907ae0103586a9f4db52241995a8267 (patch) | |
tree | 13bc622533688becae4d9d241c31698586c577f7 /include/clang/Sema/Sema.h | |
parent | 3c5f4b649f7a8ed51f9291c494a1b6e43f69d386 (diff) | |
download | clang-181e3ecc0907ae0103586a9f4db52241995a8267.tar.gz clang-181e3ecc0907ae0103586a9f4db52241995a8267.tar.bz2 clang-181e3ecc0907ae0103586a9f4db52241995a8267.tar.xz |
Cleanup handling of UniqueExternalLinkage.
This patch renames getLinkage to getLinkageInternal. Only code that
needs to handle UniqueExternalLinkage specially should call this.
Linkage, as defined in the c++ standard, is provided by
getFormalLinkage. It maps UniqueExternalLinkage to ExternalLinkage.
Most places in the compiler actually want isExternallyVisible, which
handles UniqueExternalLinkage as internal.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/Sema.h')
-rw-r--r-- | include/clang/Sema/Sema.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 8e1ebd844e..78152313c8 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -216,7 +216,7 @@ class Sema { // it will keep having external linkage. If it has internal linkage, we // will not link it. Since it has no previous decls, it will remain // with internal linkage. - return !Old->isHidden() || New->hasExternalLinkage(); + return !Old->isHidden() || New->isExternallyVisible(); } public: |