mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Constant propagate MachineInstrClassName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
48324ba825
commit
af43b47c5a
@ -280,14 +280,12 @@ static void UnescapeString(std::string &Str) {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user