Skip to content

Commit 04fc02e

Browse files
committed
[RISCV] Don't store CPUKind in CPUInfo. NFC
This field is never used today. If you have a pointer to the row you can find the CPUKind by subtracting the pointer from the start of the array.
1 parent 09f6bdd commit 04fc02e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/TargetParser/RISCVTargetParser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ enum CPUKind : unsigned {
2727

2828
struct CPUInfo {
2929
StringLiteral Name;
30-
CPUKind Kind;
3130
StringLiteral DefaultMarch;
3231
bool is64Bit() const { return DefaultMarch.starts_with("rv64"); }
3332
};
3433

3534
constexpr CPUInfo RISCVCPUInfo[] = {
3635
#define PROC(ENUM, NAME, DEFAULT_MARCH) \
37-
{NAME, CK_##ENUM, DEFAULT_MARCH},
36+
{NAME, DEFAULT_MARCH},
3837
#include "llvm/TargetParser/RISCVTargetParserDef.inc"
3938
};
4039

0 commit comments

Comments
 (0)