summaryrefslogtreecommitdiff
path: root/include/llvm/GlobalValue.h
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-05-23 14:06:57 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-05-23 14:06:57 +0000
commitf5ff1d335b76170c2c715d5f13e6ed598b2b5677 (patch)
tree85ba2d85cd9c7005582a089bd9cab92456874779 /include/llvm/GlobalValue.h
parentd14ce2f1fc41dcdcf43e612c5306351288920c7e (diff)
downloadllvm-f5ff1d335b76170c2c715d5f13e6ed598b2b5677.tar.gz
llvm-f5ff1d335b76170c2c715d5f13e6ed598b2b5677.tar.bz2
llvm-f5ff1d335b76170c2c715d5f13e6ed598b2b5677.tar.xz
available_externall linkage is not local, this was confusing the codegenerator,
and it wasn't generating calls through @PLT for these functions. hasLocalLinkage() is now false for available_externally, I attempted to fix the inliner and dce to handle available_externally properly. It passed make check. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72328 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalValue.h')
-rw-r--r--include/llvm/GlobalValue.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h
index 50c613ef6a..3b7f67d5d0 100644
--- a/include/llvm/GlobalValue.h
+++ b/include/llvm/GlobalValue.h
@@ -123,8 +123,7 @@ public:
bool hasInternalLinkage() const { return Linkage == InternalLinkage; }
bool hasPrivateLinkage() const { return Linkage == PrivateLinkage; }
bool hasLocalLinkage() const {
- return Linkage == InternalLinkage || Linkage == PrivateLinkage ||
- Linkage == AvailableExternallyLinkage;
+ return Linkage == InternalLinkage || Linkage == PrivateLinkage;
}
bool hasDLLImportLinkage() const { return Linkage == DLLImportLinkage; }
bool hasDLLExportLinkage() const { return Linkage == DLLExportLinkage; }