diff options
author | Nick Desaulniers <nickdesaulniers@users.noreply.github.com> | 2023-09-13 13:31:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 13:31:24 -0700 |
commit | 86735a4353aee4a3ba1e2feea173a7cc659c7a60 (patch) | |
tree | 935e992ad4a313bf0c1e683ed6f12a5fe391590f /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 008bd84625db6a56970ac944cc29944f0321809b (diff) | |
download | llvm-86735a4353aee4a3ba1e2feea173a7cc659c7a60.zip llvm-86735a4353aee4a3ba1e2feea173a7cc659c7a60.tar.gz llvm-86735a4353aee4a3ba1e2feea173a7cc659c7a60.tar.bz2 |
reland [InlineAsm] wrap ConstraintCode in enum class NFC (#66264)
reland [InlineAsm] wrap ConstraintCode in enum class NFC (#66003)
This reverts commit ee643b706be2b6bef9980b25cc9cc988dab94bb5.
Fix up build failures in targets I missed in #66003
Kept as 3 commits for reviewers to see better what's changed. Will
squash when
merging.
- reland [InlineAsm] wrap ConstraintCode in enum class NFC (#66003)
- fix all the targets I missed in #66003
- fix off by one found by llvm/test/CodeGen/SystemZ/inline-asm-addr.ll
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 8cc3391..d8467e2 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1778,7 +1778,7 @@ void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST, } if (F.isMemKind()) { - const unsigned MCID = F.getMemoryConstraintID(); + const InlineAsm::ConstraintCode MCID = F.getMemoryConstraintID(); OS << ":" << InlineAsm::getMemConstraintName(MCID); } |