diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-01-15 20:18:42 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-01-15 20:18:42 +0000 |
commit | 6de96a1b5d77b13719760d0143ef48e8670b6e20 (patch) | |
tree | ab6f61642a2e971790afdd47c806735afb828cdf /llvm/lib/Linker/LinkArchives.cpp | |
parent | 7ffcf93b2450ca373cdf3147744a029e9b00e095 (diff) | |
download | bcm5719-llvm-6de96a1b5d77b13719760d0143ef48e8670b6e20.tar.gz bcm5719-llvm-6de96a1b5d77b13719760d0143ef48e8670b6e20.zip |
Add the private linkage.
llvm-svn: 62279
Diffstat (limited to 'llvm/lib/Linker/LinkArchives.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkArchives.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Linker/LinkArchives.cpp b/llvm/lib/Linker/LinkArchives.cpp index 6cab77c6010..551cc8c390d 100644 --- a/llvm/lib/Linker/LinkArchives.cpp +++ b/llvm/lib/Linker/LinkArchives.cpp @@ -50,7 +50,7 @@ GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols) { if (I->hasName()) { if (I->isDeclaration()) UndefinedSymbols.insert(I->getName()); - else if (!I->hasInternalLinkage()) { + else if (!I->hasLocalLinkage()) { assert(!I->hasDLLImportLinkage() && "Found dllimported non-external symbol!"); DefinedSymbols.insert(I->getName()); @@ -62,7 +62,7 @@ GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols) { if (I->hasName()) { if (I->isDeclaration()) UndefinedSymbols.insert(I->getName()); - else if (!I->hasInternalLinkage()) { + else if (!I->hasLocalLinkage()) { assert(!I->hasDLLImportLinkage() && "Found dllimported non-external symbol!"); DefinedSymbols.insert(I->getName()); |