[llvm] [InlineAsm] wrap ConstraintCode in enum class NFC (PR #66003)
Bill Wendling via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 22:19:24 PDT 2023
================
@@ -17395,13 +17395,13 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
return Res;
}
-unsigned
+InlineAsm::ConstraintCode
RISCVTargetLowering::getInlineAsmMemConstraint(StringRef ConstraintCode) const {
// Currently only support length 1 constraints.
if (ConstraintCode.size() == 1) {
switch (ConstraintCode[0]) {
case 'A':
- return InlineAsm::Constraint_A;
+ return InlineAsm::ConstraintCode::A;
----------------
bwendling wrote:
What's up with the swtich statements? :)
https://github.com/llvm/llvm-project/pull/66003
More information about the llvm-commits
mailing list