[llvm] r211320 - Simplify. No functionality change.
Rafael Espindola
rafael.espindola at gmail.com
Thu Jun 19 15:33:23 PDT 2014
Author: rafael
Date: Thu Jun 19 17:33:23 2014
New Revision: 211320
URL: http://llvm.org/viewvc/llvm-project?rev=211320&view=rev
Log:
Simplify. No functionality change.
Thanks to Alp Toker for noticing it.
Modified:
llvm/trunk/tools/gold/gold-plugin.cpp
Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=211320&r1=211319&r2=211320&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Thu Jun 19 17:33:23 2014
@@ -322,8 +322,7 @@ static ld_plugin_status claim_file_hook(
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;
More information about the llvm-commits
mailing list