Add default implementation of printing interface
authorChris Lattner <sabre@nondot.org>
Sun, 17 Nov 2002 22:53:03 +0000 (22:53 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Nov 2002 22:53:03 +0000 (22:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4727 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetInstrInfo.cpp

index 115f2c2a7c353bb06fe5c4e4eac0c06190630451..5dca701be8e7dd33d86f09a1ef21751746eaa6fd 100644 (file)
@@ -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 {