summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-01 07:43:46 +0000
committerChris Lattner <sabre@nondot.org>2004-08-01 07:43:46 +0000
commitd5540021fc113255e3ecd5080599809fd02e9efa (patch)
tree20abfa1670035fa28c4a8af123724d767ada57d4 /llvm/lib/Target
parent65512a0c49129d649bdc827514a7e1f9c45ae794 (diff)
downloadbcm5719-llvm-d5540021fc113255e3ecd5080599809fd02e9efa.tar.gz
bcm5719-llvm-d5540021fc113255e3ecd5080599809fd02e9efa.zip
The tblgen'erated asmparser wants a way to print operands.
llvm-svn: 15392
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86AsmPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp
index 89d0ad64e0b..70eae63a8e3 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86AsmPrinter.cpp
@@ -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);
OpenPOWER on IntegriCloud