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:
Dan Gohman
2008-03-25 21:45:14 +00:00
parent 62c7b8c371
commit cfbb2f074d
13 changed files with 30 additions and 27 deletions

View File

@ -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.