mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 07:00:57 +00:00
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:
parent
fb312f9f5a
commit
4315b2b504
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user