summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2016-01-15 23:57:53 +0000
committerArtem Belevich <tra@google.com>2016-01-15 23:57:53 +0000
commit5be0706ebe1616687ce9bf0e9d558a0bf97b85dc (patch)
tree8b3c5fbef450ad2f9454ebe36b69fc3e12326008 /llvm/lib/Target
parentf2f92f14740b44f8afbeeddfdfa6d97f1126f7b3 (diff)
downloadbcm5719-llvm-5be0706ebe1616687ce9bf0e9d558a0bf97b85dc.tar.gz
bcm5719-llvm-5be0706ebe1616687ce9bf0e9d558a0bf97b85dc.zip
[NVPTX] Do not emit .hidden or .protected directives as they are not allowed by PTX.
llvm-svn: 257961
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp b/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
index ef36c13b49f..8c04db1faf7 100644
--- a/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
+++ b/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
@@ -41,6 +41,9 @@ NVPTXMCAsmInfo::NVPTXMCAsmInfo(const Triple &TheTriple) {
// PTX does not allow .align on functions.
HasFunctionAlignment = false;
HasDotTypeDotSizeDirective = false;
+ // PTX does not allow .hidden or .protected
+ HiddenDeclarationVisibilityAttr = HiddenVisibilityAttr = MCSA_Invalid;
+ ProtectedVisibilityAttr = MCSA_Invalid;
Data8bitsDirective = " .b8 ";
Data16bitsDirective = " .b16 ";
OpenPOWER on IntegriCloud