[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
This commit is contained in:
Vedant Kumar 2016-06-08 01:33:15 +00:00
parent d4ae23b483
commit 33b8b64aef
2 changed files with 2 additions and 3 deletions

View File

@ -18,8 +18,7 @@
COMPILER_RT_VISIBILITY char *(*GetEnvHook)(const char *) = 0; COMPILER_RT_VISIBILITY char *(*GetEnvHook)(const char *) = 0;
COMPILER_RT_VISIBILITY COMPILER_RT_WEAK uint64_t __llvm_profile_raw_version = COMPILER_RT_WEAK uint64_t __llvm_profile_raw_version = INSTR_PROF_RAW_VERSION;
INSTR_PROF_RAW_VERSION;
COMPILER_RT_VISIBILITY uint64_t __llvm_profile_get_magic(void) { COMPILER_RT_VISIBILITY uint64_t __llvm_profile_get_magic(void) {
return sizeof(void *) == sizeof(uint64_t) ? (INSTR_PROF_RAW_MAGIC_64) return sizeof(void *) == sizeof(uint64_t) ? (INSTR_PROF_RAW_MAGIC_64)

View File

@ -30,7 +30,7 @@ typedef struct lprofFilename {
unsigned NumHosts; unsigned NumHosts;
} lprofFilename; } lprofFilename;
COMPILER_RT_VISIBILITY lprofFilename lprofCurFilename = {0, {0}, {0}, 0, 0}; lprofFilename lprofCurFilename = {0, {0}, {0}, 0, 0};
int getpid(void); int getpid(void);
static int getCurFilenameLength(); static int getCurFilenameLength();