mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
All backends use MC now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2dc1d6666b
commit
dd86e54b61
@ -973,11 +973,6 @@ class AsmWriter {
|
||||
|
||||
// OperandSpacing - Space between operand columns.
|
||||
int OperandSpacing = -1;
|
||||
|
||||
// isMCAsmWriter - Is this assembly writer for an MC emitter? This controls
|
||||
// generation of the printInstruction() method. For MC printers, it takes
|
||||
// an MCInstr* operand, otherwise it takes a MachineInstr*.
|
||||
bit isMCAsmWriter = 1;
|
||||
}
|
||||
def DefaultAsmWriter : AsmWriter;
|
||||
|
||||
|
@ -280,8 +280,7 @@ static void UnescapeString(std::string &Str) {
|
||||
void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
|
||||
Record *AsmWriter = Target.getAsmWriter();
|
||||
std::string ClassName = AsmWriter->getValueAsString("AsmWriterClassName");
|
||||
bool isMC = AsmWriter->getValueAsBit("isMCAsmWriter");
|
||||
const char *MachineInstrClassName = isMC ? "MCInst" : "MachineInstr";
|
||||
const char *MachineInstrClassName = "MCInst";
|
||||
|
||||
O <<
|
||||
"/// printInstruction - This method is automatically generated by tablegen\n"
|
||||
@ -764,9 +763,6 @@ static unsigned CountResultNumOperands(StringRef AsmString) {
|
||||
void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
|
||||
Record *AsmWriter = Target.getAsmWriter();
|
||||
|
||||
if (!AsmWriter->getValueAsBit("isMCAsmWriter"))
|
||||
return;
|
||||
|
||||
O << "\n#ifdef PRINT_ALIAS_INSTR\n";
|
||||
O << "#undef PRINT_ALIAS_INSTR\n\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user