add a helper method.
[oota-llvm.git] / 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