No change in llvm, but will be tested from lld.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249709
91177308-0d34-0410-b5e6-
96231b3b80d8
}
Archive::symbol_iterator Archive::symbol_end() const {
- if (!hasSymbolTable())
- return symbol_iterator(Symbol(this, 0, 0));
return symbol_iterator(Symbol(this, getNumberOfSymbols(), 0));
}
uint32_t Archive::getNumberOfSymbols() const {
+ if (!hasSymbolTable())
+ return 0;
const char *buf = getSymbolTable().begin();
if (kind() == K_GNU)
return read32be(buf);