summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
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
commit26b568d9d5561f5c71ee49c708e3776eb6e52778 (patch)
treeae90208b0a71b75bcf78e5af05bf0c040ecee23e /llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
parent81a1ec8ea69ab8f92cb3e1107b9c2ef1c4db8298 (diff)
downloadbcm5719-llvm-26b568d9d5561f5c71ee49c708e3776eb6e52778.tar.gz
bcm5719-llvm-26b568d9d5561f5c71ee49c708e3776eb6e52778.zip
Fix a const violation in the generated disassembler.
llvm-svn: 161940
Diffstat (limited to 'llvm/utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FixedLenDecoderEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
index 52a11323d85..69b97cb053d 100644
--- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/llvm/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"
OpenPOWER on IntegriCloud