From b1726accb24ad13419dcbc88beae11dec4733c5a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 13 Oct 2001 06:57:47 +0000 Subject: [PATCH] Add new TerminatorInst ctor for invoke git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@770 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/InstrTypes.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/VMCore/InstrTypes.cpp b/lib/VMCore/InstrTypes.cpp index dbace177a98..9e49805d315 100644 --- a/lib/VMCore/InstrTypes.cpp +++ b/lib/VMCore/InstrTypes.cpp @@ -15,10 +15,15 @@ // TerminatorInst Class //===----------------------------------------------------------------------===// -TerminatorInst::TerminatorInst(unsigned iType) +TerminatorInst::TerminatorInst(Instruction::TermOps iType) : Instruction(Type::VoidTy, iType, "") { } +TerminatorInst::TerminatorInst(const Type *Ty, Instruction::TermOps iType, + const string &Name = "") + : Instruction(Ty, iType, Name) { +} + //===----------------------------------------------------------------------===// // MethodArgument Class