diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-10 15:36:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-10 15:36:11 +0000 |
commit | 3a8b0f00e6d23ae57fee93f7f2c18fe8e6b45c3c (patch) | |
tree | ab72d4fe50ac9bbac59aaea0074cc1621638f771 /include/llvm/Instruction.h | |
parent | 74493a4c6e3c2e2c1918959dcb631f95e5a28dce (diff) | |
download | llvm-3a8b0f00e6d23ae57fee93f7f2c18fe8e6b45c3c.tar.gz llvm-3a8b0f00e6d23ae57fee93f7f2c18fe8e6b45c3c.tar.bz2 llvm-3a8b0f00e6d23ae57fee93f7f2c18fe8e6b45c3c.tar.xz |
Implement support for inserting an instruction into a basic block right when it
is created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 8dd9f63b69..0674f0ed1a 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -1,4 +1,4 @@ -//===-- llvm/Instruction.h - Instruction class definition --------*- C++ -*--=// +//===-- llvm/Instruction.h - Instruction class definition -------*- C++ -*-===// // // This file contains the declaration of the Instruction class, which is the // base class for all of the LLVM instructions. @@ -25,8 +25,10 @@ class Instruction : public User { void setParent(BasicBlock *P); protected: unsigned iType; // InstructionType: The opcode of the instruction + + Instruction(const Type *Ty, unsigned iType, const std::string &Name = "", + Instruction *InsertBefore = 0); public: - Instruction(const Type *Ty, unsigned iType, const std::string &Name = ""); virtual ~Instruction() { assert(Parent == 0 && "Instruction still embedded in basic block!"); } |