[llvm-commits] CVS: llvm/lib/Target/MachineInstrInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 17 16:54:00 PST 2002
Changes in directory llvm/lib/Target:
MachineInstrInfo.cpp updated: 1.3 -> 1.4
---
Log message:
Add default implementation of printing interface
---
Diffs of the changes:
Index: llvm/lib/Target/MachineInstrInfo.cpp
diff -u llvm/lib/Target/MachineInstrInfo.cpp:1.3 llvm/lib/Target/MachineInstrInfo.cpp:1.4
--- llvm/lib/Target/MachineInstrInfo.cpp:1.3 Tue Oct 29 11:37:48 2002
+++ llvm/lib/Target/MachineInstrInfo.cpp Sun Nov 17 16:53:03 2002
@@ -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 @@
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 {
More information about the llvm-commits
mailing list