[AArch64] Removing unused functions.
authorMarcus Shawcroft <marcus.shawcroft@arm.com>
Wed, 4 Mar 2015 12:21:02 +0000 (12:21 +0000)
committerMarcus Shawcroft <marcus.shawcroft@arm.com>
Wed, 4 Mar 2015 12:30:34 +0000 (12:30 +0000)
Removing a group of unused functions from the AArch64 BFD backend.

bfd/ChangeLog
bfd/elfxx-aarch64.c

index a257a66484feb581e102db8565c40338e16cfb3b..db027526837d91c942cd2ba0ccf2c59775a1ebe4 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-04  Marcus Shawcroft  <marcus.shawcroft@arm.com>
+
+       * elfxx-aarch64.c (decode_add_imm, decode_movw_imm)
+       (decode_tst_branch_ofs_14, decode_ld_lit_ofs_19)
+       (decode_cond_branch_ofs_19, decode_branch_ofs_26): Remove.
+
 2015-03-04  Marcus Shawcroft  <marcus.shawcroft@arm.com>
 
        * elfnn-aarch64.c (aarch64_build_one_stub): Call abort.
index 35f3e229f54707ac47bac54fadb7da4b95b42559..b513a548570035f9f0e7a7fe8d1f8df5f299fec6 100644 (file)
 
 #define MASK(n) ((1u << (n)) - 1)
 
-/* Decode the 26-bit offset of unconditional branch.  */
-static inline uint32_t
-decode_branch_ofs_26 (uint32_t insn)
-{
-  return insn & MASK (26);
-}
-
-/* Decode the 19-bit offset of conditional branch and compare & branch.  */
-static inline uint32_t
-decode_cond_branch_ofs_19 (uint32_t insn)
-{
-  return (insn >> 5) & MASK (19);
-}
-
-/* Decode the 19-bit offset of load literal.  */
-static inline uint32_t
-decode_ld_lit_ofs_19 (uint32_t insn)
-{
-  return (insn >> 5) & MASK (19);
-}
-
-/* Decode the 14-bit offset of test & branch.  */
-static inline uint32_t
-decode_tst_branch_ofs_14 (uint32_t insn)
-{
-  return (insn >> 5) & MASK (14);
-}
-
-/* Decode the 16-bit imm of move wide.  */
-static inline uint32_t
-decode_movw_imm (uint32_t insn)
-{
-  return (insn >> 5) & MASK (16);
-}
-
-/* Decode the 12-bit imm of add immediate.  */
-static inline uint32_t
-decode_add_imm (uint32_t insn)
-{
-  return (insn >> 10) & MASK (12);
-}
-
 /* Reencode the imm field of add immediate.  */
 static inline uint32_t
 reencode_add_imm (uint32_t insn, uint32_t imm)
This page took 0.026385 seconds and 4 git commands to generate.