Add default implementation of printing interface

llvm-svn: 4727
This commit is contained in:
Chris Lattner 2002-11-17 22:53:03 +00:00
parent be5ef9028b
commit 8693803b48
1 changed files with 5 additions and 3 deletions

View 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 {