[llvm-commits] Add ConstantInt::getSigned()

Jeffrey Yasskin jyasskin at google.com
Thu Apr 23 18:26:07 PDT 2009


I got annoyed at the compiler warnings from ConstantInt::get(Ty, -1,
true), and casts make me nervous and are verbose anyway, so here's a
ConstantInt::getSigned(Ty, int64_t) method. Just overloading
ConstantInt::get() to take an int64_t too would cause ambiguous
overload errors.

Jeffrey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getsigned.patch
Type: application/octet-stream
Size: 2311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090423/b367bff1/attachment.obj>


More information about the llvm-commits mailing list