LoongArch: Use functions instead of magic numbers.
authorliuzhensong <liuzhensong@loongson.cn>
Mon, 21 Feb 2022 06:13:43 +0000 (14:13 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Sun, 20 Mar 2022 01:37:12 +0000 (09:37 +0800)
commit748594bc07f39fda35aba5f46d6e058b42c9c49d
treef07619df95dfce87e45904ca3f96638f87a56bdc
parente36144c932b0ad0de4774b8bb2552178e4f2f2a6
LoongArch: Use functions instead of magic numbers.

  Replace the magic numbers in gas(tc-loongarch.c) and
  bfd(elfnn-loongarch.c) with the functions defined in
  the howto table(elfxx-loongarch.c).

  gas/
    * config/tc-loongarch.c: use functions.

  bfd/
    * elfnn-loongarch.c: use functions.
    * elfxx-loongarch.c: define functions.
    * elfxx-loongarch.h
bfd/elfnn-loongarch.c
bfd/elfxx-loongarch.c
bfd/elfxx-loongarch.h
gas/config/tc-loongarch.c