Add an override to StringRef::getAsInteger which parses into an APInt.