Add an override to StringRef::getAsInteger which parses into an APInt.
authorJohn McCall <rjmccall@apple.com>
Sun, 28 Feb 2010 09:55:58 +0000 (09:55 +0000)
committerJohn McCall <rjmccall@apple.com>
Sun, 28 Feb 2010 09:55:58 +0000 (09:55 +0000)
commit1e7ad3993d8700488895fa372ecad55443f53485
tree559719ee3c95466fd921a748a0bddfb75670f6fd
parent5b0a7741ad262315d6365250a2da2edb8ba37e69
Add an override to StringRef::getAsInteger which parses into an APInt.
It gets its own implementation totally divorced from the (presumably
performance-sensitive) routines which parse into a uint64_t.

Add APInt::operator|=(uint64_t), which is situationally much better than
using a full APInt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97381 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h
include/llvm/ADT/StringRef.h
lib/Support/StringRef.cpp