From 287921d1889e101cb7f5cfa031a34ebe53a9a4a0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 8 Aug 2005 05:21:33 +0000 Subject: [PATCH] add a new helper method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22697 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instruction.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 9bf629a7f02..ef6285261d0 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -93,6 +93,11 @@ public: /// void eraseFromParent(); + /// moveBefore - Unlink this instruction from its current basic block and + /// insert it into the basic block that MovePos lives in, right before + /// MovePos. + void moveBefore(Instruction *MovePos); + // --------------------------------------------------------------------------- /// Subclass classification... getOpcode() returns a member of /// one of the enums that is coming soon (down below)...