summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-06-08 01:33:15 +0000
committerVedant Kumar <vsk@apple.com>2016-06-08 01:33:15 +0000
commit33b8b64aef936b142ebdc536db0cb3210ae93787 (patch)
tree0a057ecf25f6bbbce12b8757b3606cffae4a6016
parentd4ae23b4832483cc1df0bd7ae3e2c4de992debc5 (diff)
downloadbcm5719-llvm-33b8b64aef936b142ebdc536db0cb3210ae93787.tar.gz
bcm5719-llvm-33b8b64aef936b142ebdc536db0cb3210ae93787.zip
[profile] Un-hide two symbols
- lprofCurFilename was intended to have external visibility. This is pending further discussion. - The raw version number doesn't need to be hidden: hiding it may make it easier to accidentally combine FE/IR profiles. See the mailing list discussion on r272081. llvm-svn: 272089
-rw-r--r--compiler-rt/lib/profile/InstrProfiling.c3
-rw-r--r--compiler-rt/lib/profile/InstrProfilingFile.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.c b/compiler-rt/lib/profile/InstrProfiling.c
index ab27840895f..c763a44233a 100644
--- a/compiler-rt/lib/profile/InstrProfiling.c
+++ b/compiler-rt/lib/profile/InstrProfiling.c
@@ -18,8 +18,7 @@
COMPILER_RT_VISIBILITY char *(*GetEnvHook)(const char *) = 0;
-COMPILER_RT_VISIBILITY COMPILER_RT_WEAK uint64_t __llvm_profile_raw_version =
- INSTR_PROF_RAW_VERSION;
+COMPILER_RT_WEAK uint64_t __llvm_profile_raw_version = INSTR_PROF_RAW_VERSION;
COMPILER_RT_VISIBILITY uint64_t __llvm_profile_get_magic(void) {
return sizeof(void *) == sizeof(uint64_t) ? (INSTR_PROF_RAW_MAGIC_64)
diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c
index 815aae77fff..856d8f7e600 100644
--- a/compiler-rt/lib/profile/InstrProfilingFile.c
+++ b/compiler-rt/lib/profile/InstrProfilingFile.c
@@ -30,7 +30,7 @@ typedef struct lprofFilename {
unsigned NumHosts;
} lprofFilename;
-COMPILER_RT_VISIBILITY lprofFilename lprofCurFilename = {0, {0}, {0}, 0, 0};
+lprofFilename lprofCurFilename = {0, {0}, {0}, 0, 0};
int getpid(void);
static int getCurFilenameLength();
OpenPOWER on IntegriCloud