summaryrefslogtreecommitdiff
path: root/lib/Target/TargetInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-02 04:58:19 +0000
committerChris Lattner <sabre@nondot.org>2009-08-02 04:58:19 +0000
commitb6bbfebdc683a6a123410bca1175e14d264d4bc2 (patch)
tree3415ccee2ba6cd78c600e15a83888036938d8682 /lib/Target/TargetInstrInfo.cpp
parent7bbd178d4bf1181d337e5fe657926d677c2e33aa (diff)
downloadllvm-b6bbfebdc683a6a123410bca1175e14d264d4bc2.tar.gz
llvm-b6bbfebdc683a6a123410bca1175e14d264d4bc2.tar.bz2
llvm-b6bbfebdc683a6a123410bca1175e14d264d4bc2.tar.xz
move a virtual method body to its .cpp file to avoid a #include
in a header. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetInstrInfo.cpp')
-rw-r--r--lib/Target/TargetInstrInfo.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp
index 0f1ade2b9f..ad5a9d71da 100644
--- a/lib/Target/TargetInstrInfo.cpp
+++ b/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;