mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 01:11:44 +00:00
Print the visibility of available_externally functions.
We were already printing it for declarations, but not available_externally. llvm-svn: 242027
This commit is contained in:
parent
7a05b84c26
commit
122834dffd
@ -1023,7 +1023,7 @@ bool AsmPrinter::doFinalization(Module &M) {
|
||||
|
||||
// Emit visibility info for declarations
|
||||
for (const Function &F : M) {
|
||||
if (!F.isDeclaration())
|
||||
if (!F.isDeclarationForLinker())
|
||||
continue;
|
||||
GlobalValue::VisibilityTypes V = F.getVisibility();
|
||||
if (V == GlobalValue::DefaultVisibility)
|
||||
|
@ -2,13 +2,19 @@
|
||||
|
||||
@zed = external hidden constant i32
|
||||
|
||||
define available_externally hidden void @baz() {
|
||||
ret void
|
||||
}
|
||||
|
||||
define hidden void @foo() nounwind {
|
||||
entry:
|
||||
call void @bar(i32* @zed)
|
||||
call void @baz()
|
||||
ret void
|
||||
}
|
||||
|
||||
declare hidden void @bar(i32*)
|
||||
|
||||
;CHECK: .hidden zed
|
||||
;CHECK: .hidden baz
|
||||
;CHECK: .hidden bar
|
||||
|
Loading…
Reference in New Issue
Block a user