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

@ -29,7 +29,7 @@ namespace llvm {
const PseudoSourceValue *PseudoSourceValue::getJumpTable()
{ return &(*PSVs)[4]; }
static const char *PSVNames[] = {
static const char *const PSVNames[] = {
"FixedStack",
"Stack",
"GOT",