add a helper method.
authorChris Lattner <sabre@nondot.org>
Tue, 19 Apr 2011 20:47:57 +0000 (20:47 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Apr 2011 20:47:57 +0000 (20:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129806 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IRBuilder.h

index 8e6de4b177498461f899ee2d97a2dcb87fc44855..3878e793dbe00b4e05469fd9abdbd1bc7ae93e39 100644 (file)
@@ -193,6 +193,10 @@ public:
   ConstantInt *getInt64(uint64_t C) {
     return ConstantInt::get(getInt64Ty(), C);
   }
+  
+  ConstantInt *getInt(const APInt &AI) {
+    return ConstantInt::get(Context, AI);
+  }
 
   //===--------------------------------------------------------------------===//
   // Type creation methods