aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-08-15 10:26:44 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-08-15 10:26:44 +0000
commit95d235ddb62805923f2f64edd71b15b904ee4a16 (patch)
treebcbe06277ccaeb710fa93bfc317790ea9ac0a993 /utils
parent6e2d506dc962873a0e05092bbb034f9a615d1084 (diff)
downloadexternal_llvm-95d235ddb62805923f2f64edd71b15b904ee4a16.zip
external_llvm-95d235ddb62805923f2f64edd71b15b904ee4a16.tar.gz
external_llvm-95d235ddb62805923f2f64edd71b15b904ee4a16.tar.bz2
Fix a const violation in the generated disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/FixedLenDecoderEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp
index 52a1132..69b97cb 100644
--- a/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/utils/TableGen/FixedLenDecoderEmitter.cpp
@@ -905,7 +905,7 @@ emitDecoderFunction(formatted_raw_ostream &OS, DecoderSet &Decoders,
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 @@ static void emitDecodeInstruction(formatted_raw_ostream &OS) {
<< " 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"