llvm.org GIT mirror llvm / af43b47
Constant propagate MachineInstrClassName. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198969 91177308-0d34-0410-b5e6-96231b3b80d8 Roman Divacky 6 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
279279 void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
280280 Record *AsmWriter = Target.getAsmWriter();
281281 std::string ClassName = AsmWriter->getValueAsString("AsmWriterClassName");
282 const char *MachineInstrClassName = "MCInst";
283282
284283 O <<
285284 "/// printInstruction - This method is automatically generated by tablegen\n"
286285 "/// from the instruction set description.\n"
287286 "void " << Target.getName() << ClassName
288 << "::printInstruction(const " << MachineInstrClassName
289 << " *MI, raw_ostream &O) {\n";
287 << "::printInstruction(const MCInst *MI, raw_ostream &O) {\n";
290288
291289 // Build an aggregate string, and build a table of offsets into it.
292290 SequenceToOffsetTable StringTable;