mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 04:28:30 +00:00
Simplify. No functionality change.
Thanks to Alp Toker for noticing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211320 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5c2871c781
commit
7c9dcfb29e
@ -322,8 +322,7 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *file,
|
||||
|
||||
cf.syms.push_back(ld_plugin_symbol());
|
||||
ld_plugin_symbol &sym = cf.syms.back();
|
||||
sym.name = const_cast<char *>(M->getSymbolName(i));
|
||||
sym.name = strdup(sym.name);
|
||||
sym.name = strdup(M->getSymbolName(i));
|
||||
sym.version = NULL;
|
||||
|
||||
int scope = attrs & LTO_SYMBOL_SCOPE_MASK;
|
||||
|
Loading…
Reference in New Issue
Block a user