mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Remove variables that are written by not read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3432d70d5b
commit
51370298b8
@ -129,8 +129,6 @@ ld_plugin_status onload(ld_plugin_tv *tv) {
|
|||||||
// for services.
|
// for services.
|
||||||
|
|
||||||
bool registeredClaimFile = false;
|
bool registeredClaimFile = false;
|
||||||
bool registeredAllSymbolsRead = false;
|
|
||||||
bool registeredCleanup = false;
|
|
||||||
|
|
||||||
for (; tv->tv_tag != LDPT_NULL; ++tv) {
|
for (; tv->tv_tag != LDPT_NULL; ++tv) {
|
||||||
switch (tv->tv_tag) {
|
switch (tv->tv_tag) {
|
||||||
@ -178,8 +176,6 @@ ld_plugin_status onload(ld_plugin_tv *tv) {
|
|||||||
|
|
||||||
if ((*callback)(all_symbols_read_hook) != LDPS_OK)
|
if ((*callback)(all_symbols_read_hook) != LDPS_OK)
|
||||||
return LDPS_ERR;
|
return LDPS_ERR;
|
||||||
|
|
||||||
registeredAllSymbolsRead = true;
|
|
||||||
} break;
|
} break;
|
||||||
case LDPT_REGISTER_CLEANUP_HOOK: {
|
case LDPT_REGISTER_CLEANUP_HOOK: {
|
||||||
ld_plugin_register_cleanup callback;
|
ld_plugin_register_cleanup callback;
|
||||||
@ -187,8 +183,6 @@ ld_plugin_status onload(ld_plugin_tv *tv) {
|
|||||||
|
|
||||||
if ((*callback)(cleanup_hook) != LDPS_OK)
|
if ((*callback)(cleanup_hook) != LDPS_OK)
|
||||||
return LDPS_ERR;
|
return LDPS_ERR;
|
||||||
|
|
||||||
registeredCleanup = true;
|
|
||||||
} break;
|
} break;
|
||||||
case LDPT_ADD_SYMBOLS:
|
case LDPT_ADD_SYMBOLS:
|
||||||
add_symbols = tv->tv_u.tv_add_symbols;
|
add_symbols = tv->tv_u.tv_add_symbols;
|
||||||
|
Loading…
Reference in New Issue
Block a user