1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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

llvm-svn: 192433
This commit is contained in:
Robert Lytton 2013-10-11 10:27:00 +00:00
parent b441cef9c5
commit 12def987ea
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