mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Add default implementation of printing interface
llvm-svn: 4727
This commit is contained in:
parent
b51a2857f2
commit
a55e8dba9b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user