From cfbb2f074da2842e42956d3b4c21e91b37f36f06 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 25 Mar 2008 21:45:14 +0000 Subject: 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 --- lib/CodeGen/PseudoSourceValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/PseudoSourceValue.cpp') diff --git a/lib/CodeGen/PseudoSourceValue.cpp b/lib/CodeGen/PseudoSourceValue.cpp index 5c5b1d6df9..c62e49a4b0 100644 --- a/lib/CodeGen/PseudoSourceValue.cpp +++ b/lib/CodeGen/PseudoSourceValue.cpp @@ -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", -- cgit v1.2.3-70-g09d2