summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
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/Target/X86
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/Target/X86')
-rw-r--r--llvm/lib/Target/X86/X86TargetAsmInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
index 43948ec8ef3..390c5a6ff30 100644
--- a/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetAsmInfo.cpp
@@ -25,7 +25,8 @@
using namespace llvm;
using namespace llvm::dwarf;
-static const char* x86_asm_table[] = {"{si}", "S",
+static const char *const x86_asm_table[] = {
+ "{si}", "S",
"{di}", "D",
"{ax}", "a",
"{cx}", "c",
OpenPOWER on IntegriCloud