aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-05-26 21:41:09 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-05-26 21:41:09 +0000
commite5828f1fa7c2691f747f5060ce11b8e55cea03ab (patch)
treeb9334e44ca7630cc55600d097c560d02bc72b3e2 /include/llvm/Instruction.h
parent99c58f4910c898981f96f065065c3e47c94fec40 (diff)
downloadexternal_llvm-e5828f1fa7c2691f747f5060ce11b8e55cea03ab.zip
external_llvm-e5828f1fa7c2691f747f5060ce11b8e55cea03ab.tar.gz
external_llvm-e5828f1fa7c2691f747f5060ce11b8e55cea03ab.tar.bz2
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
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h4
1 files changed, 4 insertions, 0 deletions
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<Instruction, BasicBlock, Function,
ilist_traits<Instruction> >;
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() {