diff options
author | Stuart Hastings <stuart@apple.com> | 2011-02-23 02:27:05 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2011-02-23 02:27:05 +0000 |
commit | 5129bdecd87c518713765acd6998c80f9eef36a2 (patch) | |
tree | 8ccf84fa15a9b010e233e1884cf2e1bacf369f10 /include/llvm/MC/MCAsmInfo.h | |
parent | e573fb32556ba8430ccd723f71233cdf56b76340 (diff) | |
download | llvm-5129bdecd87c518713765acd6998c80f9eef36a2.tar.gz llvm-5129bdecd87c518713765acd6998c80f9eef36a2.tar.bz2 llvm-5129bdecd87c518713765acd6998c80f9eef36a2.tar.xz |
Omit private_extern declarations of extern symbols; followup to
r124468. Patch by Rafael Avila de Espindola!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmInfo.h')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 9cfd0048a6..0bf364a6df 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -246,6 +246,11 @@ namespace llvm { /// declare a symbol as having hidden visibility. MCSymbolAttr HiddenVisibilityAttr; // Defaults to MCSA_Hidden. + /// HiddenDeclarationVisibilityAttr - This attribute, if not MCSA_Invalid, + /// is used to declare an undefined symbol as having hidden visibility. + MCSymbolAttr HiddenDeclarationVisibilityAttr; // Defaults to MCSA_Hidden. + + /// ProtectedVisibilityAttr - This attribute, if not MCSA_Invalid, is used /// to declare a symbol as having protected visibility. MCSymbolAttr ProtectedVisibilityAttr; // Defaults to MCSA_Protected @@ -425,6 +430,9 @@ namespace llvm { const char *getLinkOnceDirective() const { return LinkOnceDirective; } MCSymbolAttr getHiddenVisibilityAttr() const { return HiddenVisibilityAttr;} + MCSymbolAttr getHiddenDeclarationVisibilityAttr() const { + return HiddenDeclarationVisibilityAttr; + } MCSymbolAttr getProtectedVisibilityAttr() const { return ProtectedVisibilityAttr; } |