mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Fix unused variable warning in the rare circumstance that we have no feature-dependent instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142193 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -576,8 +576,11 @@ void FilterChooser::emitTop(raw_ostream &o, unsigned Indentation,
|
|||||||
"static MCDisassembler::DecodeStatus decode" << Namespace << "Instruction" << BitWidth
|
"static MCDisassembler::DecodeStatus decode" << Namespace << "Instruction" << BitWidth
|
||||||
<< "(MCInst &MI, uint" << BitWidth << "_t insn, uint64_t Address, "
|
<< "(MCInst &MI, uint" << BitWidth << "_t insn, uint64_t Address, "
|
||||||
<< "const void *Decoder, const MCSubtargetInfo &STI) {\n";
|
<< "const void *Decoder, const MCSubtargetInfo &STI) {\n";
|
||||||
o.indent(Indentation) << " unsigned tmp = 0;\n (void)tmp;\n" << Emitter->Locals << "\n";
|
o.indent(Indentation) << " unsigned tmp = 0;\n";
|
||||||
|
o.indent(Indentation) << " (void)tmp;\n";
|
||||||
|
o.indent(Indentation) << Emitter->Locals << "\n";
|
||||||
o.indent(Indentation) << " uint64_t Bits = STI.getFeatureBits();\n";
|
o.indent(Indentation) << " uint64_t Bits = STI.getFeatureBits();\n";
|
||||||
|
o.indent(Indentation) << " (void)Bits;\n";
|
||||||
|
|
||||||
++Indentation; ++Indentation;
|
++Indentation; ++Indentation;
|
||||||
// Emits code to decode the instructions.
|
// Emits code to decode the instructions.
|
||||||
|
Reference in New Issue
Block a user