]> granicus.if.org Git - clang/commit
CodeGen: try harder to make the CFString structure RW
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 29 Jul 2016 19:15:51 +0000 (19:15 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 29 Jul 2016 19:15:51 +0000 (19:15 +0000)
commit95c251a68188c1910f37ce07366d04fa5f22f0d2
tree395c46aedaa14f484918cedcdb6084a2fc59e6ee
parente2e205bcef193fbfdbf71b567e5b0ce65188c0d0
CodeGen: try harder to make the CFString structure RW

The previous change was insufficient to mark the content as read-write as the
structure itself was marked constant.  Adjust this and add tests to ensure that
the section is marked appropriately as being read-write.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277200 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/CFStrings.c
test/CodeGenObjC/2010-02-01-utf16-with-null.m
test/CodeGenObjC/tentative-cfconstantstring.m
test/CodeGenObjCXX/arc-cxx11-init-list.mm