This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][GOLD] Remove wrappers to reduce source code size.


Hi,

    This patch removes a number of wrappers for
Arm_relocation_functions::{arm,thumb}_branch_common to reduce code
bloat in the ARM back-end.

-Doug

2010-01-29  Doug Kwan  <dougkwan@google.com>

        * arm.cc (Arm_relocate_functions::arm_branch_common) Change visibility
        to public.
        (Arm_relocate_functions::thumb_branch_common): Ditto.
        (Arm_relocate_functions::thm_call, Arm_relocate_functions::thm_jump24,
        Arm_relocate_functions::thm_xpc22, Arm_relocate_functions::plt32,
        Arm_relocate_functions::xpc25, Arm_relocate_functions::call,
        Arm_relocate_functions::jump24): Remove.
        (Target_arm::Relocate::relocate): Adjust code to call
        Arm_relocation_functions::arm_branch_common and
        Arm_relocation_functions::thumb_branch_common instead of their removed
        wrapped.  Merge switch-cases together to reduce source code size.

Attachment: patch-branch-common.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]