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:
parent
b441cef9c5
commit
12def987ea
@ -25,6 +25,10 @@ XCoreMCAsmInfo::XCoreMCAsmInfo(StringRef TT) {
|
|||||||
AscizDirective = ".asciiz";
|
AscizDirective = ".asciiz";
|
||||||
WeakRefDirective = "\t.weak\t";
|
WeakRefDirective = "\t.weak\t";
|
||||||
|
|
||||||
|
HiddenVisibilityAttr = MCSA_Invalid;
|
||||||
|
HiddenDeclarationVisibilityAttr = MCSA_Invalid;
|
||||||
|
ProtectedVisibilityAttr = MCSA_Invalid;
|
||||||
|
|
||||||
// Debug
|
// Debug
|
||||||
HasLEB128 = true;
|
HasLEB128 = true;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,16 @@ define weak void @fd() {
|
|||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; CHECK-NOT: .hidden
|
||||||
|
define hidden void @test_hidden() {
|
||||||
|
unreachable
|
||||||
|
}
|
||||||
|
|
||||||
|
; CHECK-NOT: .protected
|
||||||
|
define protected void @test_protected() {
|
||||||
|
unreachable
|
||||||
|
}
|
||||||
|
|
||||||
; CHECK: .weak gd
|
; CHECK: .weak gd
|
||||||
@gd = weak global i32 0
|
@gd = weak global i32 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user