diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-02-14 01:47:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-02-14 01:47:04 +0000 |
commit | 5bda63f16bd4cc418319d760d1d7274f8c5101e3 (patch) | |
tree | 63d58ef1a32b40ffb32ebe49fc731fa6ad57e1ab /clang/lib/Sema/SemaOverload.cpp | |
parent | 7f999078bf24bf1c66fb6b66638856bd5e1b3e15 (diff) | |
download | bcm5719-llvm-5bda63f16bd4cc418319d760d1d7274f8c5101e3.tar.gz bcm5719-llvm-5bda63f16bd4cc418319d760d1d7274f8c5101e3.zip |
merge hasCLanguageLinkage and isExternC. Keep the shorter name.
I added hasCLanguageLinkage while fixing some language linkage bugs some
time ago so that I wouldn't have to check all users of isExternC. It turned
out to be a much longer detour than expected, but this patch finally
merges the two again. The isExternC function now implements just the
standard notion of having C language linkage.
llvm-svn: 175119
Diffstat (limited to 'clang/lib/Sema/SemaOverload.cpp')
-rw-r--r-- | clang/lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp index c2e0d6f8090..9bba5f6c78d 100644 --- a/clang/lib/Sema/SemaOverload.cpp +++ b/clang/lib/Sema/SemaOverload.cpp @@ -967,7 +967,7 @@ Sema::CheckOverload(Scope *S, FunctionDecl *New, const LookupResult &Old, static bool canBeOverloaded(const FunctionDecl &D) { if (D.getAttr<OverloadableAttr>()) return true; - if (D.hasCLanguageLinkage()) + if (D.isExternC()) return false; // Main cannot be overloaded (basic.start.main). |