From: Duncan Sands Date: Wed, 15 Jul 2009 12:39:48 +0000 (+0000) Subject: Remove StringConstantPrefix now that the only user X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8cb6626df19ab54531717b419839c2a42d61f180;p=oota-llvm.git Remove StringConstantPrefix now that the only user (llvm-gcc) has gone. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75781 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index b38a2e67430..109c1e1a6c2 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -275,12 +275,6 @@ namespace llvm { /// AssemblerDialect - Which dialect of an assembler variant to use. unsigned AssemblerDialect; // Defaults to 0 - /// StringConstantPrefix - Prefix for FEs to use when generating unnamed - /// constant strings. These names get run through the Mangler later; if - /// you want the Mangler not to add the GlobalPrefix as well, - /// use '\1' as the first character. - const char *StringConstantPrefix; // Defaults to ".str" - /// AllowQuotesInName - This is true if the assembler allows for complex /// symbol names to be surrounded in quotes. This defaults to false. bool AllowQuotesInName; @@ -751,9 +745,6 @@ namespace llvm { unsigned getAssemblerDialect() const { return AssemblerDialect; } - const char *getStringConstantPrefix() const { - return StringConstantPrefix; - } bool doesAllowQuotesInName() const { return AllowQuotesInName; } diff --git a/lib/Target/DarwinTargetAsmInfo.cpp b/lib/Target/DarwinTargetAsmInfo.cpp index 329beff3c53..7ab3967c0d1 100644 --- a/lib/Target/DarwinTargetAsmInfo.cpp +++ b/lib/Target/DarwinTargetAsmInfo.cpp @@ -58,7 +58,6 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const TargetMachine &TM) GlobalPrefix = "_"; PrivateGlobalPrefix = "L"; LessPrivateGlobalPrefix = "l"; // Marker for some ObjC metadata - StringConstantPrefix = "\1LC"; NeedsSet = true; NeedsIndirectEncoding = true; AllowQuotesInName = true; diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index eeebc27ec20..333aa9dbbe7 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -59,7 +59,6 @@ TargetAsmInfo::TargetAsmInfo(const TargetMachine &tm) InlineAsmStart = "#APP"; InlineAsmEnd = "#NO_APP"; AssemblerDialect = 0; - StringConstantPrefix = ".str"; AllowQuotesInName = false; ZeroDirective = "\t.zero\t"; ZeroDirectiveSuffix = 0;