aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-03 00:57:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-03 00:57:44 +0000
commita9668e0b4c451a1021fe650c451b54dc98c2d18d (patch)
tree6b7a763092c64a5cc677c45bb0a65dfb819f4ae5 /include/clang/Basic
parent2b63fbc9bf79e98e824cd9a6d5104242756dc6b7 (diff)
Add target hook for setting symbol prefix and section of unicode
string literals. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/TargetInfo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h
index d9a8bc1f50..4fd624a626 100644
--- a/include/clang/Basic/TargetInfo.h
+++ b/include/clang/Basic/TargetInfo.h
@@ -257,6 +257,18 @@ public:
return "";
}
+ /// getUnicodeStringSymbolPrefix - Get the default symbol prefix to
+ /// use for string literals.
+ virtual const char *getUnicodeStringSymbolPrefix() const {
+ return ".str";
+ }
+
+ /// getUnicodeStringSymbolPrefix - Get the default symbol prefix to
+ /// use for string literals.
+ virtual const char *getUnicodeStringSection() const {
+ return 0;
+ }
+
/// getCFStringSection - Return the section to use for the CFString
/// literals, or 0 if no special section is used.
virtual const char *getCFStringSection() const {