llvm.org GIT mirror llvm / 5572685
Print the visibility of available_externally functions. We were already printing it for declarations, but not available_externally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242027 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 4 years ago
2 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
10221022
10231023 // Emit visibility info for declarations
10241024 for (const Function &F : M) {
1025 if (!F.isDeclaration())
1025 if (!F.isDeclarationForLinker())
10261026 continue;
10271027 GlobalValue::VisibilityTypes V = F.getVisibility();
10281028 if (V == GlobalValue::DefaultVisibility)
11
22 @zed = external hidden constant i32
33
4 define available_externally hidden void @baz() {
5 ret void
6 }
7
48 define hidden void @foo() nounwind {
59 entry:
610 call void @bar(i32* @zed)
11 call void @baz()
712 ret void
813 }
914
1015 declare hidden void @bar(i32*)
1116
1217 ;CHECK: .hidden zed
18 ;CHECK: .hidden baz
1319 ;CHECK: .hidden bar