[llvm] 93014e0 - [M68k] Use non-deprecated CasesLower
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 31 22:41:58 PDT 2025
Author: Fangrui Song
Date: 2025-10-31T22:41:52-07:00
New Revision: 93014e07622d9699b13870d618464594bf783d0f
URL: https://github.com/llvm/llvm-project/commit/93014e07622d9699b13870d618464594bf783d0f
DIFF: https://github.com/llvm/llvm-project/commit/93014e07622d9699b13870d618464594bf783d0f.diff
LOG: [M68k] Use non-deprecated CasesLower
Added:
Modified:
llvm/lib/Target/M68k/MCTargetDesc/M68kAsmBackend.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/M68k/MCTargetDesc/M68kAsmBackend.cpp b/llvm/lib/Target/M68k/MCTargetDesc/M68kAsmBackend.cpp
index fe83dc6e1abfb..51bafe4a4c56c 100644
--- a/llvm/lib/Target/M68k/MCTargetDesc/M68kAsmBackend.cpp
+++ b/llvm/lib/Target/M68k/MCTargetDesc/M68kAsmBackend.cpp
@@ -49,7 +49,7 @@ class M68kAsmBackend : public MCAsmBackend {
M68kAsmBackend(const Target &T, const MCSubtargetInfo &STI)
: MCAsmBackend(llvm::endianness::big),
Allows32BitBranch(llvm::StringSwitch<bool>(STI.getCPU())
- .CasesLower("m68020", "m68030", "m68040", true)
+ .CasesLower({"m68020", "m68030", "m68040"}, true)
.Default(false)) {}
void applyFixup(const MCFragment &, const MCFixup &, const MCValue &,
More information about the llvm-commits
mailing list