Add new TerminatorInst ctor for invoke
authorChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 06:57:47 +0000 (06:57 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 06:57:47 +0000 (06:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@770 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/InstrTypes.cpp

index dbace177a98d2f1fac3e0b7c51cfefcc0e8a5a70..9e49805d315b23a10aa09f8c29f604675086a9cd 100644 (file)
 //                            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