summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-14 05:55:45 +0000
committerChris Lattner <sabre@nondot.org>2009-10-14 05:55:45 +0000
commit4f8a2e22c0e49b871288fefa44ddffc7833ff15c (patch)
treeb487020459265fb574c17d92db774cb2a5e75da8 /clang/lib/Basic
parent4ae411e096c2811a534a373142f359ee82c394a7 (diff)
downloadbcm5719-llvm-4f8a2e22c0e49b871288fefa44ddffc7833ff15c.tar.gz
bcm5719-llvm-4f8a2e22c0e49b871288fefa44ddffc7833ff15c.zip
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
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/Targets.cpp4
1 files changed, 0 insertions, 4 deletions
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";
}
OpenPOWER on IntegriCloud