MC: Remove vestigial PCSymbol field from AsmInfo
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 25 Sep 2013 09:36:11 +0000 (09:36 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 25 Sep 2013 09:36:11 +0000 (09:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191362 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCAsmInfo.h
lib/MC/MCAsmInfo.cpp
lib/Target/MSP430/MCTargetDesc/MSP430MCAsmInfo.cpp
lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
lib/Target/R600/MCTargetDesc/AMDGPUMCAsmInfo.cpp
lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp

index 186a8f657c2631893e8d33dccae49cc79bede0b5..f5acd1716df44b69006396575ac1e6b98ea7eda6 100644 (file)
@@ -93,10 +93,6 @@ namespace llvm {
     /// this value.  Factored out in .debug_frame and .debug_line.
     unsigned MinInstAlignment;                  // Defaults to 1.
 
-    /// PCSymbol - The symbol used to represent the current PC.  Used in PC
-    /// relative expressions.
-    const char *PCSymbol;                    // Defaults to "$".
-
     /// SeparatorString - This string, if specified, is used to separate
     /// instructions from each other when on the same line.
     const char *SeparatorString;             // Defaults to ';'
@@ -425,9 +421,6 @@ namespace llvm {
     unsigned getMinInstAlignment() const {
       return MinInstAlignment;
     }
-    const char *getPCSymbol() const {
-      return PCSymbol;
-    }
     const char *getSeparatorString() const {
       return SeparatorString;
     }
index a9c0507f0cf65ef3b0c954f890314814ce1bd990..73dc74a4f20d82384808dcd50f0358ca1e331839 100644 (file)
@@ -35,7 +35,6 @@ MCAsmInfo::MCAsmInfo() {
   LinkerRequiresNonEmptyDwarfLines = false;
   MaxInstLength = 4;
   MinInstAlignment = 1;
-  PCSymbol = "$";
   SeparatorString = ";";
   CommentColumn = 40;
   CommentString = "#";
index d213a45bb9f2be1d4568c0c251b7c6d4941b5b98..ab8c81efededdc11ffb2dbf1a64bfc9aaebbcd94 100644 (file)
@@ -22,7 +22,6 @@ MSP430MCAsmInfo::MSP430MCAsmInfo(StringRef TT) {
 
   PrivateGlobalPrefix = ".L";
   WeakRefDirective ="\t.weak\t";
-  PCSymbol=".";
   CommentString = ";";
 
   AlignmentIsInBytes = false;
index 682250774d951b03d378358d30e4354241346c41..1f3e5b49a644c6e6241c65d60d0e7331c3044a2e 100644 (file)
@@ -22,7 +22,6 @@ PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
   }
   IsLittleEndian = false;
 
-  PCSymbol = ".";
   CommentString = ";";
   ExceptionsType = ExceptionHandling::DwarfCFI;
 
@@ -55,8 +54,6 @@ PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
   // Debug Information
   SupportsDebugInformation = true;
 
-  PCSymbol = ".";
-
   // Set up DWARF directives
   HasLEB128 = true;  // Target asm supports leb128 directives (little-endian)
   MinInstAlignment = 4;
index 59136f373320bebc87f998351c2343dd659de780..e26d7a30ce391ce8af8129fb76cbb5cb180b86ba 100644 (file)
@@ -21,7 +21,6 @@ AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(StringRef &TT) : MCAsmInfo() {
   HasStaticCtorDtorReferenceInStaticMode = false;
   LinkerRequiresNonEmptyDwarfLines = true;
   MaxInstLength = 16;
-  PCSymbol = "$";
   SeparatorString = "\n";
   CommentColumn = 40;
   CommentString = ";";
index 9e27aa004a929d299fef61a7f2e110dc67b44c23..1d39140a79485380fc266167654b218f42954582 100644 (file)
@@ -19,7 +19,6 @@ SystemZMCAsmInfo::SystemZMCAsmInfo(StringRef TT) {
   IsLittleEndian = false;
 
   CommentString = "#";
-  PCSymbol = ".";
   GlobalPrefix = "";
   PrivateGlobalPrefix = ".L";
   WeakRefDirective = "\t.weak\t";
index 36b6eb40caba0e76925972c1b5f607dc8c917a5f..826caf4b4c56be17355e9baa4ce4ab2f52afc197 100644 (file)
@@ -59,7 +59,6 @@ X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &T) {
   // for .S files on other systems.  Perhaps this is because the file system
   // wasn't always case preserving or something.
   CommentString = "##";
-  PCSymbol = ".";
 
   SupportsDebugInformation = true;
   UseDataRegionDirectives = MarkedJTDataRegions;
@@ -92,7 +91,6 @@ X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &T) {
 
   PrivateGlobalPrefix = ".L";
   WeakRefDirective = "\t.weak\t";
-  PCSymbol = ".";
 
   // Set up DWARF directives
   HasLEB128 = true;  // Target asm supports leb128 directives (little-endian)