diff options
author | David Fang <fang@csl.cornell.edu> | 2013-12-10 21:37:41 +0000 |
---|---|---|
committer | David Fang <fang@csl.cornell.edu> | 2013-12-10 21:37:41 +0000 |
commit | b59d46efa521801a3d42fc5f53fedf3e81b070ce (patch) | |
tree | eccfa9fd87dd702c6d1e88841a72c3b406e96a87 /include | |
parent | b2282508d347bdb7bb5cd21c482de13c4cf90f0f (diff) | |
download | llvm-b59d46efa521801a3d42fc5f53fedf3e81b070ce.tar.gz llvm-b59d46efa521801a3d42fc5f53fedf3e81b070ce.tar.bz2 llvm-b59d46efa521801a3d42fc5f53fedf3e81b070ce.tar.xz |
on darwin<10, fallback to .weak_definition (PPC,X86)
.weak_def_can_be_hidden was not yet supported by the system assembler
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index b0a81d68c0..f09428d28c 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -270,6 +270,10 @@ namespace llvm { /// defined symbol. bool HasWeakDefDirective; // Defaults to false. + /// True if we have a directive to declare a global as being a weak + /// defined symbol that can be hidden (unexported). + bool HasWeakDefCanBeHiddenDirective; // Defaults to false. + /// True if we have a .linkonce directive. This is used on cygwin/mingw. bool HasLinkOnceDirective; // Defaults to false. @@ -501,6 +505,9 @@ namespace llvm { bool hasNoDeadStrip() const { return HasNoDeadStrip; } const char *getWeakRefDirective() const { return WeakRefDirective; } bool hasWeakDefDirective() const { return HasWeakDefDirective; } + bool hasWeakDefCanBeHiddenDirective() const { + return HasWeakDefCanBeHiddenDirective; + } bool hasLinkOnceDirective() const { return HasLinkOnceDirective; } MCSymbolAttr getHiddenVisibilityAttr() const { return HiddenVisibilityAttr;} |