XCore target does not emit '.hidden' or '.protected' attributes
authorRobert Lytton <robert@xmos.com>
Fri, 11 Oct 2013 10:27:00 +0000 (10:27 +0000)
committerRobert Lytton <robert@xmos.com>
Fri, 11 Oct 2013 10:27:00 +0000 (10:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192433 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/XCore/MCTargetDesc/XCoreMCAsmInfo.cpp
test/CodeGen/XCore/linkage.ll

index 235028cf595af13d400093328919a8efe174d7a0..19b97efeaf0b08aa5bb1e89cbabf97c407a6ba36 100644 (file)
@@ -25,6 +25,10 @@ XCoreMCAsmInfo::XCoreMCAsmInfo(StringRef TT) {
   AscizDirective = ".asciiz";
   WeakRefDirective = "\t.weak\t";
 
+  HiddenVisibilityAttr = MCSA_Invalid;
+  HiddenDeclarationVisibilityAttr = MCSA_Invalid;
+  ProtectedVisibilityAttr = MCSA_Invalid;
+
   // Debug
   HasLEB128 = true;
 }
index 129158423942fadf5c48d8f3a5544606d4c5f7f6..659995155b787bf65bb874de839c0dc941ebd5a3 100644 (file)
@@ -6,6 +6,16 @@ define weak void @fd() {
   ret void
 }
 
+; CHECK-NOT: .hidden
+define hidden void @test_hidden() {
+  unreachable
+}
+
+; CHECK-NOT: .protected
+define protected void @test_protected() {
+  unreachable
+}
+
 ; CHECK: .weak gd
 @gd = weak global i32 0