[DynInst_API:] [dyninst/dyninst] c0194f: Remove dead code in emitter classes (#2036)


Date: Thu, 23 Oct 2025 09:07:22 -0700
From: Tim Haines <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] c0194f: Remove dead code in emitter classes (#2036)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: c0194f418bbe9fb254a093dc2973b4837f0b42ba
      https://github.com/dyninst/dyninst/commit/c0194f418bbe9fb254a093dc2973b4837f0b42ba
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    M dwarf/h/dwarfExprParser.h
    M dyninstAPI/src/ast.C
    M dyninstAPI/src/emit-aarch64.h
    M dyninstAPI/src/emit-power.h
    M dyninstAPI/src/emit-x86.C
    M dyninstAPI/src/emit-x86.h
    M dyninstAPI/src/emitter.h
    M dyninstAPI/src/inst-aarch64.C
    M dyninstAPI/src/inst-power.C
    M dyninstAPI/src/inst-x86.C
    M dyninstAPI/src/inst-x86.h
    M dyninstAPI/src/inst.h

  Log Message:
  -----------
  Remove dead code in emitter classes (#2036)

* Remove emitter::emitPIC

It was added by 1bdb443c713 in 2010, but has always been commented-out.

* Remove unused emitter variables

* Remove unused declarations of getInterModule{Var,Func}Addr

These were commented-out by 418b41ea66 in 2019.

* Remove unused PTRACE_REG macros

Added by 18616116a in 2005. Their last usage was removedby cfa91d0260
in 2024.

* Remove virtual register macros

Their usage was removed by 0a3392d0ea3 in 2009.

* Remove GET_GPR macro

Its usage was removed by 4a4b40a242f5 in 2009.

* Remove NUM_FPR_REGISTERS macro

Its usage was removed by bb377beb948 in 2007.

* Remove SAVED_EFLAGS_OFFSET macro

Its usage was removed by 4a4b40a242 in 2009.

* Remove function parameter macros

Their usage was removed by 4a4b40a242 in 2009.

* Remove unsed debug macro

* Remove emitFuncCall

This form was removed by 339cb668 in 2006.

* Remove Register_DWARFtoMachineEnc

It appears its usage was removed by 938db9a0ae in 2007 and
replaced with Register_DWARFtoMachineEnc{32,64}.

* Remove Register_DWARFtoMachineEnc64

Its usage was removed by 9c0aea7f1266d in 2012.

* Remove Register_DWARFtoMachineEnc32

Its usage was removed by 9c0aea7f1266d in 2012.

* Remove EmitterIA32::mt_offset

Its usage was removed by 0a3392d0ea3 in 2009.

* Remove EmitterIA32::mt_offset

Its usage was removed by 0a3392d0ea3 in 2009.

* Remove old comment about PowerPC emitFuncCall

It not longer applies.

* Remove emitAddMem64

Added by 91b6e31e47 in 2006, but never implemented.

* Fix declaration of emitMovImmToRM64

* Fix declaration of emitAddRM64

* Fix declaration of emitMovPCRMToReg64



To unsubscribe from these emails, change your notification settings at https://github.com/dyninst/dyninst/settings/notifications
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] c0194f: Remove dead code in emitter classes (#2036), Tim Haines <=