Revert some unneeded parts of the change in r107886 for the
authorKevin Enderby <enderby@apple.com>
Thu, 8 Jul 2010 20:30:44 +0000 (20:30 +0000)
committerKevin Enderby <enderby@apple.com>
Thu, 8 Jul 2010 20:30:44 +0000 (20:30 +0000)
.weak_def_can_be_hidden directive.  Chris pointed out that the MCAsmInfo.h/.cpp
chunks aren't needed for this until the compiler starts generating these.  And
when that happens it will be more convenient for it to be a bool than a const
char*.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107906 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCAsmInfo.h
lib/MC/MCAsmInfo.cpp
lib/MC/MCAsmInfoDarwin.cpp

index 5d796731143800cd5d3fdf38b3bbcc7a29136c87..8516de0188d65b76c3fcb52bf8cf4fad8afaef17 100644 (file)
@@ -217,11 +217,6 @@ namespace llvm {
     /// global as being a weak defined symbol.
     const char *WeakDefDirective;            // Defaults to NULL.
 
-    /// WeakDefAutoPrivateDirective - This directive, if non-null, is used to
-    /// declare a global as being a weak defined symbol that is automatically
-    /// made private by the static linker.
-    const char *WeakDefAutoPrivateDirective; // Defaults to NULL.
-
     /// LinkOnceDirective - This directive, if non-null is used to declare a
     /// global as being a weak defined symbol.  This is used on cygwin/mingw.
     const char *LinkOnceDirective;           // Defaults to NULL.
@@ -392,9 +387,6 @@ namespace llvm {
     bool hasNoDeadStrip() const { return HasNoDeadStrip; }
     const char *getWeakRefDirective() const { return WeakRefDirective; }
     const char *getWeakDefDirective() const { return WeakDefDirective; }
-    const char *getWeakDefAutoPrivateDirective() const {
-      return WeakDefAutoPrivateDirective;
-    }
     const char *getLinkOnceDirective() const { return LinkOnceDirective; }
     
     MCSymbolAttr getHiddenVisibilityAttr() const { return HiddenVisibilityAttr;}
index b726b3d93594f282a882ee660a60cb773a78dd62..a275be2c53c5fa8026b5b3b0edb09d8ee83591ba 100644 (file)
@@ -59,7 +59,6 @@ MCAsmInfo::MCAsmInfo() {
   HasNoDeadStrip = false;
   WeakRefDirective = 0;
   WeakDefDirective = 0;
-  WeakDefAutoPrivateDirective = 0;
   LinkOnceDirective = 0;
   HiddenVisibilityAttr = MCSA_Hidden;
   ProtectedVisibilityAttr = MCSA_Protected;
index 4f5075f50ef93b09652989b02a2dcf01943985c3..0bd3b2d001e8c5cddbafdc8621605b3f3119d67f 100644 (file)
@@ -33,7 +33,6 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
   // Directives:
   WeakDefDirective = "\t.weak_definition ";
   WeakRefDirective = "\t.weak_reference ";
-  WeakDefAutoPrivateDirective = "\t.weak_def_can_be_hidden ";
   ZeroDirective = "\t.space\t";  // ".space N" emits N zeros.
   HasMachoZeroFillDirective = true;  // Uses .zerofill
   HasMachoTBSSDirective = true; // Uses .tbss