Don't lookup an object symbol name in the module.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 9 Dec 2014 16:13:59 +0000 (16:13 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 9 Dec 2014 16:13:59 +0000 (16:13 +0000)
commit527e846ef7d15ee17459ab7b9e7454504f9b1b96
treec4eb5e3ea6926c61504272746692c5fb03dc42f9
parenta94a68a8d2b9f9c64b2d75fa5a9d6b178c03f4b8
Don't lookup an object symbol name in the module.

Instead, walk the obj symbol list in parallel to find the GV. This shouldn't
change anything on ELF where global symbols are not mangled, but it is a step
toward supporting other object formats.

Gold itself is ELF only, but bfd ld supports COFF and the logic in the gold
plugin could be reused on lld.

llvm-svn: 223780
llvm/include/llvm/Object/IRObjectFile.h
llvm/lib/Object/IRObjectFile.cpp
llvm/tools/gold/gold-plugin.cpp