Set hidden attribute on lprofMergeValueProfData
authorAna Pazos <apazos@quicinc.com>
Thu, 14 Feb 2019 21:38:40 +0000 (21:38 +0000)
committerAna Pazos <apazos@quicinc.com>
Thu, 14 Feb 2019 21:38:40 +0000 (21:38 +0000)
commitbbb8129b2cdd456d54a4d8cd26550706bc5105d4
treea9753b8781c498ab22304e4a06654cb361ab68f3
parent48d680dd5667ee35b85df7ca4b93933d370578bc
Set hidden attribute on lprofMergeValueProfData

Summary:
The changes in https://reviews.llvm.org/D44847 cause load time failure
due to lprofMergeValueProfData in Android libs enabled with profile generation:

"dlopen failed: cannot locate symbol "lprofMergeValueProfData" referenced by..."

Marking lprofMergeValueProfData as hidden so the correct in-module definition
 is picked by the linker.

Reviewers: davidxl

Reviewed By: davidxl

Subscribers: efriedma, xur, davidxl, llvm-commits

Differential Revision: https://reviews.llvm.org/D55893

llvm-svn: 354064
compiler-rt/lib/profile/InstrProfilingMergeFile.c
compiler-rt/test/profile/Inputs/instrprof-value-prof-visibility.c [new file with mode: 0644]
compiler-rt/test/profile/Linux/instrprof-value-prof-visibility.test [new file with mode: 0644]