diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-19 20:47:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-19 20:47:57 +0000 |
commit | 562ae4bba616de518f76a73618c96835637c8d4a (patch) | |
tree | 9e414fb8ff5e3d58381d8dda7a3647671541ff9a /include/llvm/Support/IRBuilder.h | |
parent | d285139e0e1fc4a2253ebb18415e2abdf573e373 (diff) | |
download | external_llvm-562ae4bba616de518f76a73618c96835637c8d4a.zip external_llvm-562ae4bba616de518f76a73618c96835637c8d4a.tar.gz external_llvm-562ae4bba616de518f76a73618c96835637c8d4a.tar.bz2 |
add a helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r-- | include/llvm/Support/IRBuilder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 8e6de4b..3878e79 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 |