[llvm-commits] [llvm-gcc-4.2] r78249 - /llvm-gcc-4.2/trunk/gcc/config/darwin-c.c
Dale Johannesen
dalej at apple.com
Wed Aug 5 15:14:36 PDT 2009
Author: johannes
Date: Wed Aug 5 17:13:47 2009
New Revision: 78249
URL: http://llvm.org/viewvc/llvm-project?rev=78249&view=rev
Log:
Mark decls created for UTF-16 strings as constant.
Modified:
llvm-gcc-4.2/trunk/gcc/config/darwin-c.c
Modified: llvm-gcc-4.2/trunk/gcc/config/darwin-c.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/darwin-c.c?rev=78249&r1=78248&r2=78249&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/darwin-c.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/darwin-c.c Wed Aug 5 17:13:47 2009
@@ -1220,6 +1220,10 @@
DECL_IGNORED_P (decl) = 1;
DECL_ARTIFICIAL (decl) = 1;
DECL_CONTEXT (decl) = NULL_TREE;
+ /* LLVM LOCAL begin 7115749 this object is constant. */
+ TREE_CONSTANT (decl) = 1;
+ TREE_READONLY (decl) = 1;
+ /* LLVM LOCAL end */
attribute = tree_cons (NULL_TREE, build_string (len, section_name), NULL_TREE);
attribute = tree_cons (get_identifier ("section"), attribute, NULL_TREE);
More information about the llvm-commits
mailing list