Skip to content

Commit 63ecb01

Browse files
committed
[RISCV] Reduce dynamic relocations for RISCVOpcodesList table. NFC
Inline the strings directly into the table instead of storing a pointer. Similar to what was done for other searchable tables in the last couple months.
1 parent f3b1849 commit 63ecb01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ struct SysReg {
484484

485485
namespace RISCVInsnOpcode {
486486
struct RISCVOpcode {
487-
const char *Name;
488-
unsigned Value;
487+
char Name[10];
488+
uint8_t Value;
489489
};
490490

491491
#define GET_RISCVOpcodesList_DECL

0 commit comments

Comments
 (0)