Avoid calling getNamedValue.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 11 Mar 2016 16:11:47 +0000 (16:11 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 11 Mar 2016 16:11:47 +0000 (16:11 +0000)
commit9b3acf9098607047211559b7e2771b18b5e3dce7
tree1ae7f3fea4a989930aabfff4e9335e1cb20a6ef4
parent7423f40674b16c746dfaa94dfc4b3f962dd6b156
Avoid calling getNamedValue.

In lld we usually avoid hash lookups. In addition to that, IR names are
not fully mangled, so it is best to avoid using them whenever possible.

llvm-svn: 263248
lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h
lld/ELF/SymbolTable.cpp