[llvm] [LLVM][M68k] Fix build failure caused by #160797 (PR #160926)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 26 10:47:37 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-m68k
Author: Rahul Joshi (jurahul)
<details>
<summary>Changes</summary>
Fix M68k build failures caused by https://github.com/llvm/llvm-project/pull/160797
---
Full diff: https://github.com/llvm/llvm-project/pull/160926.diff
1 Files Affected:
- (modified) llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp (+4-7)
``````````diff
diff --git a/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp b/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
index deef39407ea35..e37f3a66fe11f 100644
--- a/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
+++ b/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
@@ -42,7 +42,7 @@ class M68kAsmParser : public MCTargetAsmParser {
bool invalidOperand(SMLoc Loc, const OperandVector &Operands,
const uint64_t &ErrorInfo);
bool missingFeature(SMLoc Loc, const uint64_t &ErrorInfo);
- bool emit(MCInst &Inst, SMLoc const &Loc, MCStreamer &Out) const;
+ bool emit(MCInst &Inst, SMLoc Loc, MCStreamer &Out) const;
bool parseRegisterName(MCRegister &RegNo, SMLoc Loc, StringRef RegisterName);
ParseStatus parseRegister(MCRegister &RegNo);
@@ -991,8 +991,7 @@ bool M68kAsmParser::parseInstruction(ParseInstructionInfo &Info, StringRef Name,
return false;
}
-bool M68kAsmParser::invalidOperand(SMLoc const &Loc,
- OperandVector const &Operands,
+bool M68kAsmParser::invalidOperand(SMLoc Loc, OperandVector const &Operands,
uint64_t const &ErrorInfo) {
SMLoc ErrorLoc = Loc;
char const *Diag = 0;
@@ -1015,13 +1014,11 @@ bool M68kAsmParser::invalidOperand(SMLoc const &Loc,
return Error(ErrorLoc, Diag);
}
-bool M68kAsmParser::missingFeature(llvm::SMLoc const &Loc,
- uint64_t const &ErrorInfo) {
+bool M68kAsmParser::missingFeature(SMLoc Loc, uint64_t const &ErrorInfo) {
return Error(Loc, "instruction requires a CPU feature not currently enabled");
}
-bool M68kAsmParser::emit(MCInst &Inst, SMLoc const &Loc,
- MCStreamer &Out) const {
+bool M68kAsmParser::emit(MCInst &Inst, SMLoc Loc, MCStreamer &Out) const {
Inst.setLoc(Loc);
Out.emitInstruction(Inst, *STI);
``````````
</details>
https://github.com/llvm/llvm-project/pull/160926
More information about the llvm-commits
mailing list