]> granicus.if.org Git - clang/commit
InstrProf: Set profile data to visibility hidden
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 16 May 2014 01:24:00 +0000 (01:24 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 16 May 2014 01:24:00 +0000 (01:24 +0000)
commiteaad5be64467dbb0e056b4f8b7a27ec76e6e4262
tree96df21f7ab50e7063a8ef757b39693e2ec2d5ede
parentefed1a7b694ae1f2f619eb50146850d770cf6618
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
lib/CodeGen/CodeGenPGO.cpp
test/Profile/c-captured.c
test/Profile/c-general.c
test/Profile/c-linkage-available_externally.c
test/Profile/c-linkage.c
test/Profile/cxx-lambda.cpp
test/Profile/cxx-linkage.cpp
test/Profile/cxx-templates.cpp
test/Profile/cxx-throws.cpp
test/Profile/objc-general.m