@@ -83,7 +83,7 @@ static cl::opt<bool> LargeTable(
83
83
" in the table instead of the default 16 bits." ),
84
84
cl::init(false ), cl::cat(DisassemblerEmitterCat));
85
85
86
- static cl::opt<bool > UseFnTableInDecodetoMCInst (
86
+ static cl::opt<bool > UseFnTableInDecodeToMCInst (
87
87
" use-fn-table-in-decode-to-mcinst" ,
88
88
cl::desc (
89
89
" Use a table of function pointers instead of a switch case in the\n "
@@ -1087,7 +1087,7 @@ void DecoderEmitter::emitDecoderFunction(formatted_raw_ostream &OS,
1087
1087
" DecodeStatus S, InsnType insn, MCInst &MI, uint64_t Address, const "
1088
1088
" MCDisassembler *Decoder, bool &DecodeComplete" ;
1089
1089
1090
- if (UseFnTableInDecodetoMCInst ) {
1090
+ if (UseFnTableInDecodeToMCInst ) {
1091
1091
// Emit a function for each case first.
1092
1092
for (const auto &[Index, Decoder] : enumerate(Decoders)) {
1093
1093
OS << Indent << " template <typename InsnType>\n " ;
@@ -1110,7 +1110,7 @@ void DecoderEmitter::emitDecoderFunction(formatted_raw_ostream &OS,
1110
1110
Indent += 2 ;
1111
1111
OS << Indent << " DecodeComplete = true;\n " ;
1112
1112
1113
- if (UseFnTableInDecodetoMCInst ) {
1113
+ if (UseFnTableInDecodeToMCInst ) {
1114
1114
// Build a table of function pointers.
1115
1115
OS << Indent << " using DecodeFnTy = DecodeStatus (*)(" << DecodeParams
1116
1116
<< " );\n " ;
@@ -1311,7 +1311,7 @@ std::pair<unsigned, bool> FilterChooser::getDecoderIndex(DecoderSet &Decoders,
1311
1311
// FIXME: emitDecoder() function can take a buffer directly rather than
1312
1312
// a stream.
1313
1313
raw_svector_ostream S (Decoder);
1314
- indent Indent (UseFnTableInDecodetoMCInst ? 2 : 4 );
1314
+ indent Indent (UseFnTableInDecodeToMCInst ? 2 : 4 );
1315
1315
bool HasCompleteDecoder = emitDecoder (S, Indent, Opc);
1316
1316
1317
1317
// Using the full decoder string as the key value here is a bit
0 commit comments