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 | f5f4439265edc37a1c43730cc1578d1212e9c54f (patch) | |
tree | 62fac6f14e838389e39bd9ac0b1646a76c3d2dae | |
parent | ed3d5496dc7ac4b70e81df69b45aab8a1e5743d2 (diff) | |
download | bcm5719-llvm-f5f4439265edc37a1c43730cc1578d1212e9c54f.tar.gz bcm5719-llvm-f5f4439265edc37a1c43730cc1578d1212e9c54f.zip |
add a helper method.
llvm-svn: 129806
-rw-r--r-- | llvm/include/llvm/Support/IRBuilder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/IRBuilder.h b/llvm/include/llvm/Support/IRBuilder.h index 8e6de4b1774..3878e793dbe 100644 --- a/llvm/include/llvm/Support/IRBuilder.h +++ b/llvm/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 |