aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2010-07-08 17:22:42 +0000
committerKevin Enderby <enderby@apple.com>2010-07-08 17:22:42 +0000
commitf59cac5ed36360b4c462781051f996b3499d7e0f (patch)
treeff513719695e99989d6b566301d9376cbea720d1 /include/llvm
parentda995609e6e963eaa77346d43b0a33b81e53a785 (diff)
downloadexternal_llvm-f59cac5ed36360b4c462781051f996b3499d7e0f.zip
external_llvm-f59cac5ed36360b4c462781051f996b3499d7e0f.tar.gz
external_llvm-f59cac5ed36360b4c462781051f996b3499d7e0f.tar.bz2
Added the darwin .weak_def_can_be_hidden directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/MC/MCAsmInfo.h8
-rw-r--r--include/llvm/MC/MCDirectives.h3
2 files changed, 10 insertions, 1 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h
index 8516de0..5d79673 100644
--- a/include/llvm/MC/MCAsmInfo.h
+++ b/include/llvm/MC/MCAsmInfo.h
@@ -217,6 +217,11 @@ 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.
@@ -387,6 +392,9 @@ 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;}
diff --git a/include/llvm/MC/MCDirectives.h b/include/llvm/MC/MCDirectives.h
index 1f7364d..223b09e 100644
--- a/include/llvm/MC/MCDirectives.h
+++ b/include/llvm/MC/MCDirectives.h
@@ -38,7 +38,8 @@ enum MCSymbolAttr {
MCSA_Reference, ///< .reference (MachO)
MCSA_Weak, ///< .weak
MCSA_WeakDefinition, ///< .weak_definition (MachO)
- MCSA_WeakReference ///< .weak_reference (MachO)
+ MCSA_WeakReference, ///< .weak_reference (MachO)
+ MCSA_WeakDefAutoPrivate ///< .weak_def_can_be_hidden (MachO)
};
enum MCAssemblerFlag {