[llvm] ffab44b - [MC] Quick fix for Windows build failures after D142218
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 27 06:29:15 PDT 2023
Author: Jay Foad
Date: 2023-03-27T14:29:05+01:00
New Revision: ffab44bd960c6392a0ed1f945cc145a2a2643c8c
URL: https://github.com/llvm/llvm-project/commit/ffab44bd960c6392a0ed1f945cc145a2a2643c8c
DIFF: https://github.com/llvm/llvm-project/commit/ffab44bd960c6392a0ed1f945cc145a2a2643c8c.diff
LOG: [MC] Quick fix for Windows build failures after D142218
Added:
Modified:
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 806ee70dba541..ace2891c9deea 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -70,7 +70,12 @@
using namespace llvm;
namespace llvm {
-extern const MCInstrDesc ARMDescs[];
+struct ARMInstrTable {
+ MCInstrDesc Insts[4445];
+ MCOperandInfo OperandInfo[3026];
+ MCPhysReg ImplicitOps[130];
+};
+extern const ARMInstrTable ARMDescs;
} // end namespace llvm
namespace {
@@ -2504,7 +2509,7 @@ class ARMOperand : public MCParsedAsmOperand {
} else {
unsigned NextOpIndex = Inst.getNumOperands();
const MCInstrDesc &MCID =
- ARMDescs[ARM::INSTRUCTION_LIST_END - 1 - Inst.getOpcode()];
+ ARMDescs.Insts[ARM::INSTRUCTION_LIST_END - 1 - Inst.getOpcode()];
int TiedOp = MCID.getOperandConstraint(NextOpIndex, MCOI::TIED_TO);
assert(TiedOp >= 0 &&
"Inactive register in vpred_r is not tied to an output!");
More information about the llvm-commits
mailing list