[llvm-branch-commits] [llvm-branch] r136072 - /llvm/branches/exception-handling-rewrite/include/llvm/Support/IRBuilder.h

Bill Wendling isanbard at gmail.com
Tue Jul 26 03:20:20 PDT 2011


Author: void
Date: Tue Jul 26 05:20:20 2011
New Revision: 136072

URL: http://llvm.org/viewvc/llvm-project?rev=136072&view=rev
Log:
Add builder method to build the landingpad instruction.

Modified:
    llvm/branches/exception-handling-rewrite/include/llvm/Support/IRBuilder.h

Modified: llvm/branches/exception-handling-rewrite/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/exception-handling-rewrite/include/llvm/Support/IRBuilder.h?rev=136072&r1=136071&r2=136072&view=diff
==============================================================================
--- llvm/branches/exception-handling-rewrite/include/llvm/Support/IRBuilder.h (original)
+++ llvm/branches/exception-handling-rewrite/include/llvm/Support/IRBuilder.h Tue Jul 26 05:20:20 2011
@@ -1198,6 +1198,11 @@
     return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
   }
 
+  Value *CreateLandingPad(Type *Ty, Value *PersFn, unsigned NumClauses,
+                          const Twine &Name = "") {
+    return Insert(LandingPadInst::Create(Ty, PersFn, NumClauses, Name));
+  }
+
   //===--------------------------------------------------------------------===//
   // Utility creation methods
   //===--------------------------------------------------------------------===//





More information about the llvm-branch-commits mailing list