[llvm] [InlineAsm] wrap ConstraintCode in enum class NFC (PR #66003)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 19:46:40 PDT 2023
================
@@ -204,11 +204,12 @@ M68kTargetLowering::getExceptionSelectorRegister(const Constant *) const {
return M68k::D1;
}
-unsigned
+InlineAsm::ConstraintCode
M68kTargetLowering::getInlineAsmMemConstraint(StringRef ConstraintCode) const {
- return StringSwitch<unsigned>(ConstraintCode)
- .Case("Q", InlineAsm::Constraint_Q)
- .Case("U", InlineAsm::Constraint_Um) // We borrow Constraint_Um for 'U'.
+ return StringSwitch<InlineAsm::ConstraintCode>(ConstraintCode)
+ .Case("Q", InlineAsm::ConstraintCode::Q)
+ .Case("U",
+ InlineAsm::ConstraintCode::Um) // We borrow Constraint_Um for 'U'.
----------------
mshockwave wrote:
nit: "We borrow Constraint::Um for 'U'"
https://github.com/llvm/llvm-project/pull/66003
More information about the llvm-commits
mailing list