[llvm-commits] [llvm] r161940 - /llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Benjamin Kramer
benny.kra at googlemail.com
Wed Aug 15 03:26:44 PDT 2012
Author: d0k
Date: Wed Aug 15 05:26:44 2012
New Revision: 161940
URL: http://llvm.org/viewvc/llvm-project?rev=161940&view=rev
Log:
Fix a const violation in the generated disassembler.
Modified:
llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
Modified: llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp?rev=161940&r1=161939&r2=161940&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FixedLenDecoderEmitter.cpp Wed Aug 15 05:26:44 2012
@@ -905,7 +905,7 @@
OS.indent(Indentation) << "static DecodeStatus decodeToMCInst(DecodeStatus S,"
<< " unsigned Idx, InsnType insn, MCInst &MI,\n";
OS.indent(Indentation) << " uint64_t "
- << "Address, void *Decoder) {\n";
+ << "Address, const void *Decoder) {\n";
Indentation += 2;
OS.indent(Indentation) << "InsnType tmp;\n";
OS.indent(Indentation) << "switch (Idx) {\n";
@@ -1975,7 +1975,7 @@
<< " DEBUG(dbgs() << \"----- DECODE SUCCESSFUL -----\\n\");\n"
<< "\n"
<< " MI.setOpcode(Opc);\n"
- << " return decodeToMCInst(S, DecodeIdx, insn, MI, Address, (void*)DisAsm);\n"
+ << " return decodeToMCInst(S, DecodeIdx, insn, MI, Address, DisAsm);\n"
<< " }\n"
<< " case MCD::OPC_SoftFail: {\n"
<< " // Decode the mask values.\n"
More information about the llvm-commits
mailing list