diff options
author | Martin Storsjo <martin@martin.st> | 2019-08-02 11:02:34 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2019-08-02 11:02:34 +0000 |
commit | 5f0077d238f12572d13c6070f74ecbace49511c8 (patch) | |
tree | fd74e14c74f68788e74d05b6f1f7b5c8eef62771 /lld/COFF/SymbolTable.cpp | |
parent | ad66e95b0de5e3763b0d22345a0dca5f6b722a48 (diff) | |
download | bcm5719-llvm-5f0077d238f12572d13c6070f74ecbace49511c8.tar.gz bcm5719-llvm-5f0077d238f12572d13c6070f74ecbace49511c8.zip |
[COFF] Avoid loading objects for mingw autoimport, when a defined alias exists
This avoids a spurious and confusing log message in cases where
both e.g. "alias" and "__imp_alias" exist.
Differential Revision: https://reviews.llvm.org/D65598
llvm-svn: 367673
Diffstat (limited to 'lld/COFF/SymbolTable.cpp')
-rw-r--r-- | lld/COFF/SymbolTable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp index 415da9da8ab..13220ed4989 100644 --- a/lld/COFF/SymbolTable.cpp +++ b/lld/COFF/SymbolTable.cpp @@ -185,6 +185,8 @@ void SymbolTable::loadMinGWAutomaticImports() { continue; if (!sym->isUsedInRegularObj) continue; + if (undef->getWeakAlias()) + continue; StringRef name = undef->getName(); |