llvm.org GIT mirror llvm / 562ae4b
add a helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129806 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
191191 /// getInt64 - Get a constant 64-bit value.
192192 ConstantInt *getInt64(uint64_t C) {
193193 return ConstantInt::get(getInt64Ty(), C);
194 }
195
196 ConstantInt *getInt(const APInt &AI) {
197 return ConstantInt::get(Context, AI);
194198 }
195199
196200 //===--------------------------------------------------------------------===//