From e5828f1fa7c2691f747f5060ce11b8e55cea03ab Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Wed, 26 May 2004 21:41:09 +0000 Subject: Refactor common initialization code in private init() functions. This is a first step in supplying append to basic block constructors for all instruction types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13793 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instruction.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/llvm/Instruction.h') diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index fae6d2a..17eec87 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -36,11 +36,15 @@ class Instruction : public User, public Annotable { friend class SymbolTableListTraits >; void setParent(BasicBlock *P); + void init(); + protected: unsigned iType; // InstructionType: The opcode of the instruction Instruction(const Type *Ty, unsigned iType, const std::string &Name = "", Instruction *InsertBefore = 0); + Instruction(const Type *Ty, unsigned iType, const std::string &Name, + BasicBlock *InsertAtEnd); public: ~Instruction() { -- cgit v1.1