#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/CodeGen/MachineJumpTableInfo.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/Mangler.h"
STATISTIC(EmittedInsts, "Number of machine instrs printed");
-static cl::opt<bool> NewAsmPrinter("experimental-asm-printer",
- cl::Hidden, cl::init(true));
-
//===----------------------------------------------------------------------===//
// Primitive Helper Functions.
//===----------------------------------------------------------------------===//
}
-
void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
const char *Modifier) {
const MachineOperand &MO = MI->getOperand(OpNo);
O << ':';
}
-
void X86ATTAsmPrinter::printPICJumpTableEntry(const MachineJumpTableInfo *MJTI,
const MachineBasicBlock *MBB,
unsigned uid) const {
processDebugLoc(MI->getDebugLoc());
- // Call the autogenerated instruction printer routines.
- if (NewAsmPrinter)
- printInstructionThroughMCStreamer(MI);
- else
- printInstruction(MI);
+ printInstructionThroughMCStreamer(MI);
if (VerboseAsm && !MI->getDebugLoc().isUnknown())
EmitComments(*MI);
return AsmPrinter::doFinalization(M);
}
-// Include the auto-generated portion of the assembly writer.
-#include "X86GenAsmWriter.inc"
bool doFinalization(Module &M);
- /// printInstruction - This method is automatically generated by tablegen
- /// from the instruction set description. This method returns true if the
- /// machine instruction was sufficiently described to print it, otherwise it
- /// returns false.
- void printInstruction(const MachineInstr *MI);
-
void printInstructionThroughMCStreamer(const MachineInstr *MI);