From fbfdfd5d1c617038e4f27ae2b6e860d4d81dbdb6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 5 Mar 2006 23:48:51 +0000 Subject: [PATCH] add a hook to insert a noop llvm-svn: 26560 --- llvm/include/llvm/Target/TargetInstrInfo.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/llvm/include/llvm/Target/TargetInstrInfo.h b/llvm/include/llvm/Target/TargetInstrInfo.h index 29ec213c931f..36f4b5559a03 100644 --- a/llvm/include/llvm/Target/TargetInstrInfo.h +++ b/llvm/include/llvm/Target/TargetInstrInfo.h @@ -273,6 +273,13 @@ public: return MI; } + /// insertNoop - Insert a noop into the instruction stream at the specified + /// point. + virtual void insertNoop(MachineBasicBlock &MBB, + MachineBasicBlock::iterator MI) const { + assert(0 && "Target didn't implement insertNoop!"); + abort(); + } //------------------------------------------------------------------------- // Code generation support for creating individual machine instructions