From 4f8a2e22c0e49b871288fefa44ddffc7833ff15c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 14 Oct 2009 05:55:45 +0000 Subject: fix some cfstring related issues: 1) -fwritable-string does affect the non-utf16 version of cfstrings just not the utf16 ones. 2) utf16 strings should always be marked constant, as the __TEXT segment is readonly. 3) The name of the global doesn't matter, remove it from TargetInfo. 4) Trust the asmprinter to drop cstrings into the right section, like llvmgcc does now. This fixes rdar://7115750 llvm-svn: 84077 --- clang/lib/Basic/Targets.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'clang/lib/Basic') diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 6e670c58c6a..1d4d1235c96 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -197,10 +197,6 @@ public: this->TLSSupported = false; } - virtual const char *getUnicodeStringSymbolPrefix() const { - return "__utf16_string_"; - } - virtual const char *getUnicodeStringSection() const { return "__TEXT,__ustring"; } -- cgit v1.2.3