diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-25 21:45:14 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-25 21:45:14 +0000 |
commit | cfbb2f074da2842e42956d3b4c21e91b37f36f06 (patch) | |
tree | 189c62a04edbe3e10e114d655bb008c898ed7e20 /lib/Target/X86/X86TargetAsmInfo.cpp | |
parent | 62c7b8c3713f7178991fac299abcb04e3818ca65 (diff) | |
download | llvm-cfbb2f074da2842e42956d3b4c21e91b37f36f06.tar.gz llvm-cfbb2f074da2842e42956d3b4c21e91b37f36f06.tar.bz2 llvm-cfbb2f074da2842e42956d3b4c21e91b37f36f06.tar.xz |
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
Diffstat (limited to 'lib/Target/X86/X86TargetAsmInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index 43948ec8ef..390c5a6ff3 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/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", |