[llvm-commits] [llvm] r107906 - in /llvm/trunk: include/llvm/MC/MCAsmInfo.h lib/MC/MCAsmInfo.cpp lib/MC/MCAsmInfoDarwin.cpp
Kevin Enderby
enderby at apple.com
Thu Jul 8 13:30:44 PDT 2010
Author: enderby
Date: Thu Jul 8 15:30:44 2010
New Revision: 107906
URL: http://llvm.org/viewvc/llvm-project?rev=107906&view=rev
Log:
Revert some unneeded parts of the change in r107886 for the
.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*.
Modified:
llvm/trunk/include/llvm/MC/MCAsmInfo.h
llvm/trunk/lib/MC/MCAsmInfo.cpp
llvm/trunk/lib/MC/MCAsmInfoDarwin.cpp
Modified: llvm/trunk/include/llvm/MC/MCAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCAsmInfo.h?rev=107906&r1=107905&r2=107906&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCAsmInfo.h (original)
+++ llvm/trunk/include/llvm/MC/MCAsmInfo.h Thu Jul 8 15:30:44 2010
@@ -217,11 +217,6 @@
/// 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 @@
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;}
Modified: llvm/trunk/lib/MC/MCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmInfo.cpp?rev=107906&r1=107905&r2=107906&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmInfo.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmInfo.cpp Thu Jul 8 15:30:44 2010
@@ -59,7 +59,6 @@
HasNoDeadStrip = false;
WeakRefDirective = 0;
WeakDefDirective = 0;
- WeakDefAutoPrivateDirective = 0;
LinkOnceDirective = 0;
HiddenVisibilityAttr = MCSA_Hidden;
ProtectedVisibilityAttr = MCSA_Protected;
Modified: llvm/trunk/lib/MC/MCAsmInfoDarwin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmInfoDarwin.cpp?rev=107906&r1=107905&r2=107906&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmInfoDarwin.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmInfoDarwin.cpp Thu Jul 8 15:30:44 2010
@@ -33,7 +33,6 @@
// 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
More information about the llvm-commits
mailing list