aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-17 22:53:03 +0000
committerChris Lattner <sabre@nondot.org>2002-11-17 22:53:03 +0000
commita187ed92ae22d0548bd06ee088fd3187008be9d6 (patch)
treee172ee29c7a3a79eb7a2da05a02677fc439f74f7
parent23e6bba592af68ba991ee6900978e81eb21a08af (diff)
Add default implementation of printing interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4727 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/TargetInstrInfo.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp
index 115f2c2a7c..5dca701be8 100644
--- a/lib/Target/TargetInstrInfo.cpp
+++ b/lib/Target/TargetInstrInfo.cpp
@@ -1,11 +1,10 @@
-//===-- TargetMachine.cpp - General Target Information ---------------------==//
+//===-- MachineInstrInfo.cpp - Target Instruction Information -------------===//
//
-// This file describes the general parts of a Target machine.
-// This file also implements MachineInstrInfo and MachineCacheInfo.
//
//===----------------------------------------------------------------------===//
#include "llvm/Target/MachineInstrInfo.h"
+#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/Constant.h"
#include "llvm/DerivedTypes.h"
@@ -34,6 +33,9 @@ MachineInstrInfo::~MachineInstrInfo() {
TargetInstrDescriptors = NULL; // reset global variable
}
+void MachineInstrInfo::print(const MachineInstr *MI, std::ostream &O) const {
+ O << *MI;
+}
bool MachineInstrInfo::constantFitsInImmedField(MachineOpCode opCode,
int64_t intValue) const {