aboutsummaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-10-29 12:56:50 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-11-28 00:03:02 +0000
commitb7379eaddab00dc4ba9c9b98d8f603b9560366a1 (patch)
treed2b81b1c92f89d290e74474e200b69fce0b58a9b /COPYING
parentb921626516059fc96e6930a2e7a9f6d66357667e (diff)
downloadgdb-b7379eaddab00dc4ba9c9b98d8f603b9560366a1.zip
gdb-b7379eaddab00dc4ba9c9b98d8f603b9560366a1.tar.gz
gdb-b7379eaddab00dc4ba9c9b98d8f603b9560366a1.tar.bz2
gas/riscv: Remove unneeded structure
We build a hash table of all register classes and numbers. The hash key is the register name and the hash value is the class and number encoded into a single value, which is of type 'void *'. When we pull the values out of the hash we cast them to be a pointer to a structure, however, we never access the fields of that structure, we just decode the register class and number from the pointer value itself. This commit removes the structure and treats the encoded class and number as a 'void *' during hash lookup. gas/ChangeLog: * config/tc-riscv.c (struct regname): Delete. (hash_reg_names): Handle value as 'void *'. Change-Id: Ie7d8f46ca3798f56f4af94395279de684f87f9cc
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions