]> granicus.if.org Git - clang/commit
CodeGen: tweak CFString section for COFF, ELF
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 9 Jul 2016 01:59:51 +0000 (01:59 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 9 Jul 2016 01:59:51 +0000 (01:59 +0000)
commitac32f35f1795d39f9a859555ea6a50a3cd36278e
tree3624900e6f30f1052a5e480b47f086ff162092ea
parentbdbcfcb4a760e7537d29b40bf2dd8b06f001369e
CodeGen: tweak CFString section for COFF, ELF

Place the structure data into `cfstring`.  This both isolates the structures to
permit coalescing in the future (by the linker) as well as ensures that it
doesnt get marked as read-only data.  The structures themselves are not
read-only, only the string contents.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274956 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/CFStrings.c