commit | 1bf7a3fcc4e2ad30688f7b0db464ad1ccabe77e2 | [log] [tgz] |
---|---|---|
author | Bill Wendling <isanbard@gmail.com> | Tue Jan 10 08:46:39 2012 +0000 |
committer | Bill Wendling <isanbard@gmail.com> | Tue Jan 10 08:46:39 2012 +0000 |
tree | dd5cabf9dba41214b2dcc602b703c343c12b77ed | |
parent | 7ead5c7b6fd48cf549e55b4db499c26ecf88ae75 [diff] |
The `-fwritable-strings' flag doesn't make the backing store strings of all CFStrings writable. The strings (both Unicode and ASCII) should reside in a read-only section. E.g., __TEXT,__cstring instead of __DATA,__data. This is done by making the global variable created for the strings constant despite the value of that flag. <rdar://problem/10657500> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147845 91177308-0d34-0410-b5e6-96231b3b80d8