[RISCV] Remove or simplify some StringSwitches in RISCVTargetParser.cpp. NFC
authorCraig Topper <craig.topper@sifive.com>
Mon, 1 May 2023 22:26:03 +0000 (15:26 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 1 May 2023 22:26:03 +0000 (15:26 -0700)
commitddafabeacf74d0024aac35c367d00b5f633dcb5b
tree8526c666caff0b7aa6b9a4e445996b5ff51f7876
parent6c667abf3294d61e4fbe1238e1755c79f7547f1b
[RISCV] Remove or simplify some StringSwitches in RISCVTargetParser.cpp. NFC

We can iterate over the RISCVCPUInfo table instead of using a
separate StringSwitch.
llvm/lib/TargetParser/RISCVTargetParser.cpp