summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-25 21:45:14 +0000
committerDan Gohman <gohman@apple.com>2008-03-25 21:45:14 +0000
commitbdc24adaafc3ec79eba2fb279b8f5546bfbedae5 (patch)
treea060cad83ba4846ccb3ad5690dcc0cd1016ac68f /llvm/lib/Support/APInt.cpp
parenta7ba51f6ecb26372e38a4552f16bb634375fecad (diff)
downloadbcm5719-llvm-bdc24adaafc3ec79eba2fb279b8f5546bfbedae5.tar.gz
bcm5719-llvm-bdc24adaafc3ec79eba2fb279b8f5546bfbedae5.zip
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. llvm-svn: 48800
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index a853b92ae41..cd9508537c6 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -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;
OpenPOWER on IntegriCloud