]> granicus.if.org Git - clang/commit
Don't explicitly force utf strings into the __TEXT,__ustring
authorChris Lattner <sabre@nondot.org>
Mon, 1 Feb 2010 20:59:08 +0000 (20:59 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Feb 2010 20:59:08 +0000 (20:59 +0000)
commitb9f709665a6fe9da5c67d0431de2e63c55dd5322
treee743ce77abe4b8d77067da2048b48c461717e62e
parent31310a21fb2a9f13950f864f681c86080b05d5b2
Don't explicitly force utf strings into the __TEXT,__ustring
by setting the section of the generated global.  This is an
optimization done by the code generator, and the code being
removed didn't handle the case when the string contained an
embedded nul (which the code generator does correctly
handle).  This is rdar://7589850

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95003 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/Basic/Targets.cpp
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/darwin-string-literals.c