From: Chris Lattner Date: Tue, 19 Apr 2011 20:47:57 +0000 (+0000) Subject: add a helper method. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=562ae4bba616de518f76a73618c96835637c8d4a;p=oota-llvm.git add a helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129806 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 8e6de4b1774..3878e793dbe 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -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