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/CBackend/CBackend.cpp | |
parent | 62c7b8c3713f7178991fac299abcb04e3818ca65 (diff) |
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/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index eb7d58517b..24ac8f9e5c 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -2825,7 +2825,7 @@ std::string CWriter::InterpretASMConstraint(InlineAsm::ConstraintInfo& c) { assert(c.Codes.size() == 1 && "Too many asm constraint codes to handle"); - const char** table = 0; + const char *const *table = 0; //Grab the translation table from TargetAsmInfo if it exists if (!TAsm) { |