summaryrefslogtreecommitdiff
path: root/test/Profile/objc-general.m
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-05-16 01:24:00 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-05-16 01:24:00 +0000
commiteaad5be64467dbb0e056b4f8b7a27ec76e6e4262 (patch)
tree96df21f7ab50e7063a8ef757b39693e2ec2d5ede /test/Profile/objc-general.m
parentefed1a7b694ae1f2f619eb50146850d770cf6618 (diff)
downloadclang-eaad5be64467dbb0e056b4f8b7a27ec76e6e4262.tar.gz
InstrProf: Set profile data to visibility hidden
Shared objects are fairly broken for InstrProf right now -- a follow-up commit in compiler-rt will fix the rest of this. The main problem here is that at link time, profile data symbols in the shared object might get used instead of symbols from the main executable, creating invalid profile data sections. <rdar://problem/16918688> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Profile/objc-general.m')
-rw-r--r--test/Profile/objc-general.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Profile/objc-general.m b/test/Profile/objc-general.m
index dc746189a8..ba06f91a7f 100644
--- a/test/Profile/objc-general.m
+++ b/test/Profile/objc-general.m
@@ -33,7 +33,7 @@ struct NSFastEnumerationState;
// PGOGEN: @[[FRC:"__llvm_profile_counters_\+\[A foreach:\]"]] = internal global [2 x i64] zeroinitializer
// PGOGEN: @[[BLC:"__llvm_profile_counters___13\+\[A foreach:\]_block_invoke"]] = internal global [2 x i64] zeroinitializer
-// PGOGEN: @[[MAC:__llvm_profile_counters_main]] = global [1 x i64] zeroinitializer
+// PGOGEN: @[[MAC:__llvm_profile_counters_main]] = hidden global [1 x i64] zeroinitializer
@interface A : NSObject
+ (void)foreach: (NSArray *)array;