[llvm-commits] [llvm] r129806 - /llvm/trunk/include/llvm/Support/IRBuilder.h
Chris Lattner
sabre at nondot.org
Tue Apr 19 13:47:58 PDT 2011
Author: lattner
Date: Tue Apr 19 15:47:57 2011
New Revision: 129806
URL: http://llvm.org/viewvc/llvm-project?rev=129806&view=rev
Log:
add a helper method.
Modified:
llvm/trunk/include/llvm/Support/IRBuilder.h
Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=129806&r1=129805&r2=129806&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Tue Apr 19 15:47:57 2011
@@ -193,6 +193,10 @@
ConstantInt *getInt64(uint64_t C) {
return ConstantInt::get(getInt64Ty(), C);
}
+
+ ConstantInt *getInt(const APInt &AI) {
+ return ConstantInt::get(Context, AI);
+ }
//===--------------------------------------------------------------------===//
// Type creation methods
More information about the llvm-commits
mailing list