From bdc24adaafc3ec79eba2fb279b8f5546bfbedae5 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. llvm-svn: 48800 --- llvm/lib/Target/CBackend/CBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/CBackend/CBackend.cpp') diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index eb7d58517bc..24ac8f9e5c0 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/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) { -- cgit v1.2.3