COFF: Cache Archive::Symbol::getName(). NFC.
authorRui Ueyama <ruiu@google.com>
Fri, 19 Jun 2015 21:25:44 +0000 (21:25 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 19 Jun 2015 21:25:44 +0000 (21:25 +0000)
commit29792a82a9ed7733e76eb8ef30fa27fa6f606c45
treefa4e8de52c7e5eafc715267b892f83ff0c8228cf
parent573bf7de9cd9d4e558721ecb3ce8ff0178abd103
COFF: Cache Archive::Symbol::getName(). NFC.

getName() does strlen() on the symbol table, so it's not very fast.
It's not as bad as r239332 because the number of symbols exported
from archive files are fewer than object files, and they are usually
shorter, though.

llvm-svn: 240178
lld/COFF/InputFiles.cpp