mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
A quick nm audit turned up several fixed tables and objects that were
marked read-write. Use const so that they can be allocated in a read-only segment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1971,7 +1971,7 @@ void APInt::fromString(uint32_t numbits, const char *str, uint32_t slen,
|
||||
std::string APInt::toString(uint8_t radix, bool wantSigned) const {
|
||||
assert((radix == 10 || radix == 8 || radix == 16 || radix == 2) &&
|
||||
"Radix should be 2, 8, 10, or 16!");
|
||||
static const char *digits[] = {
|
||||
static const char *const digits[] = {
|
||||
"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"
|
||||
};
|
||||
std::string result;
|
||||
|
Reference in New Issue
Block a user