diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-02 04:58:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-02 04:58:19 +0000 |
commit | 0161419259895b9028d6c939ff912b4ed9aa4fb8 (patch) | |
tree | bd0d4368c1da486b0a625d72d64fb445593ab26a /llvm/lib/Target/TargetInstrInfo.cpp | |
parent | 1fe76c385bb9e3f76fdd9602eda6476b445a6070 (diff) | |
download | bcm5719-llvm-0161419259895b9028d6c939ff912b4ed9aa4fb8.tar.gz bcm5719-llvm-0161419259895b9028d6c939ff912b4ed9aa4fb8.zip |
move a virtual method body to its .cpp file to avoid a #include
in a header.
llvm-svn: 77874
Diffstat (limited to 'llvm/lib/Target/TargetInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/TargetInstrInfo.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp index 0f1ade2b9f9..ad5a9d71da4 100644 --- a/llvm/lib/Target/TargetInstrInfo.cpp +++ b/llvm/lib/Target/TargetInstrInfo.cpp @@ -13,8 +13,7 @@ #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetRegisterInfo.h" -#include "llvm/Constant.h" -#include "llvm/DerivedTypes.h" +#include "llvm/Support/ErrorHandling.h" using namespace llvm; TargetInstrInfo::TargetInstrInfo(const TargetInstrDesc* Desc, @@ -25,6 +24,14 @@ TargetInstrInfo::TargetInstrInfo(const TargetInstrDesc* Desc, TargetInstrInfo::~TargetInstrInfo() { } +/// insertNoop - Insert a noop into the instruction stream at the specified +/// point. +void TargetInstrInfo::insertNoop(MachineBasicBlock &MBB, + MachineBasicBlock::iterator MI) const { + llvm_unreachable("Target didn't implement insertNoop!"); +} + + bool TargetInstrInfo::isUnpredicatedTerminator(const MachineInstr *MI) const { const TargetInstrDesc &TID = MI->getDesc(); if (!TID.isTerminator()) return false; |