summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-07-13 14:30:13 -0400
committerBen Gamari <ben@smart-cactus.org>2022-07-14 19:49:10 -0400
commit7c481f0fdf52cc6402fed407b964563de5dc7b8e (patch)
treedf5fdc5f2b4fe254502c9998b633b8d22a56c71b
parent5a69a9ff9119df5947c37852825f8a865cfab96b (diff)
downloadhaskell-7c481f0fdf52cc6402fed407b964563de5dc7b8e.tar.gz
rts/linker/MachO: Drop dead code
(cherry picked from commit 0115b0b141611f5ad9a22ac0d77212000e209504)
-rw-r--r--rts/linker/MachO.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/rts/linker/MachO.c b/rts/linker/MachO.c
index b37e2c9bc3..01c08f5389 100644
--- a/rts/linker/MachO.c
+++ b/rts/linker/MachO.c
@@ -1350,7 +1350,6 @@ ocGetNames_MachO(ObjectCode* oc)
{
IF_DEBUG(linker_verbose, debugBelch("ocGetNames_MachO: inserting %s\n", nm));
SymbolAddr* addr = oc->info->macho_symbols[i].addr;
- MachOSection *sect = &oc->info->macho_sections[oc->info->macho_symbols[i].nlist->n_sect-1];
// TODO: Make figure out how to determine this from the object file
SymType sym_type = SYM_TYPE_CODE;
ghciInsertSymbolTable( oc->fileName