XCore target does not emit '.hidden' or '.protected' attributes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192433 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Robert Lytton 2013-10-11 10:27:00 +00:00
parent fb312f9f5a
commit 4315b2b504
2 changed files with 14 additions and 0 deletions

View 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;
}

View 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