summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.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/CommandLine.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/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 486875210fd..b3f32e89fbd 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -267,7 +267,7 @@ static bool EatsUnboundedNumberOfValues(const Option *O) {
static void ParseCStringVector(std::vector<char *> &output,
const char *input) {
// Characters which will be treated as token separators:
- static const char *delims = " \v\f\t\r\n";
+ static const char *const delims = " \v\f\t\r\n";
std::string work (input);
// Skip past any delims at head of input string.
OpenPOWER on IntegriCloud