The tblgen'erated asmparser wants a way to print operands.
authorChris Lattner <sabre@nondot.org>
Sun, 1 Aug 2004 07:43:46 +0000 (07:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Aug 2004 07:43:46 +0000 (07:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15392 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86AsmPrinter.cpp

index 89d0ad64e0b58be1db52e714ce394d3e9d954168..70eae63a8e397df0cefe41643b06fcfe3c05a6bf 100644 (file)
@@ -25,6 +25,7 @@
 #include "llvm/CodeGen/MachineConstantPool.h"
 #include "llvm/CodeGen/MachineFunctionPass.h"
 #include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/CodeGen/ValueTypes.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Support/Mangler.h"
 #include "Support/Statistic.h"
@@ -103,6 +104,11 @@ namespace {
     /// returns false.
     bool printInstruction(const MachineInstr *MI);
 
+    // This method is used by the tablegen'erated instruction printer.
+    void printOperand(const MachineOperand &MO, MVT::ValueType VT) {
+      printOp(MO);
+    }
+
     void printImplUsesBefore(const TargetInstrDescriptor &Desc);
     bool printImplDefsBefore(const TargetInstrDescriptor &Desc);
     bool printImplUsesAfter(const TargetInstrDescriptor &Desc, const bool LC);