From 562ae4bba616de518f76a73618c96835637c8d4a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Apr 2011 20:47:57 +0000 Subject: [PATCH] add a helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129806 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/IRBuilder.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.34.1