Added additional overloaded operators for APSInt to match the operators of
authorTed Kremenek <kremenek@apple.com>
Thu, 24 Jan 2008 18:59:52 +0000 (18:59 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 24 Jan 2008 18:59:52 +0000 (18:59 +0000)
commitcadf873c83ad7ea7c638e6d98fc5f20752702b03
treed182285a6146224dacef0764045dea71612eddc7
parentfd687500384803311556571989dc14cd84786904
Added additional overloaded operators for APSInt to match the operators of
APInt.

While some operators were already specifically overloaded for APSInt, others
resulted in using the overloaded operator methods in APInt, which would result
in the signedness bit being lost.

Modified the APSInt(APInt&) constructor to be "explicit" and to take an
extra (optional) flag to indicate the signedness.  Making the ctor explicit
will catch any implicit conversations between APSInt -> APInt -> APSInt that
results in the signedness flag being lost.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46316 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APSInt.h