[llvm] r198969 - Constant propagate MachineInstrClassName.
Roman Divacky
rdivacky at freebsd.org
Fri Jan 10 14:59:49 PST 2014
Author: rdivacky
Date: Fri Jan 10 16:59:49 2014
New Revision: 198969
URL: http://llvm.org/viewvc/llvm-project?rev=198969&view=rev
Log:
Constant propagate MachineInstrClassName.
Modified:
llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=198969&r1=198968&r2=198969&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Fri Jan 10 16:59:49 2014
@@ -280,14 +280,12 @@ static void UnescapeString(std::string &
void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
Record *AsmWriter = Target.getAsmWriter();
std::string ClassName = AsmWriter->getValueAsString("AsmWriterClassName");
- const char *MachineInstrClassName = "MCInst";
O <<
"/// printInstruction - This method is automatically generated by tablegen\n"
"/// from the instruction set description.\n"
"void " << Target.getName() << ClassName
- << "::printInstruction(const " << MachineInstrClassName
- << " *MI, raw_ostream &O) {\n";
+ << "::printInstruction(const MCInst *MI, raw_ostream &O) {\n";
// Build an aggregate string, and build a table of offsets into it.
SequenceToOffsetTable<std::string> StringTable;
More information about the llvm-commits
mailing list