From 4c179b46f8c72068c0b3a4a11296e0bfdf7a863c Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Wed, 8 Jun 2016 00:44:38 +0000 Subject: [profile] Hide a few external symbols (NFCI) There are still a few external symbols visible from InstrProfData.inc. The plan for dealing with those isn't as straightforward, so I'll try it in a separate commit. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272081 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/profile/InstrProfilingUtil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/profile/InstrProfilingUtil.c') diff --git a/lib/profile/InstrProfilingUtil.c b/lib/profile/InstrProfilingUtil.c index 4c3623712..f97004d41 100644 --- a/lib/profile/InstrProfilingUtil.c +++ b/lib/profile/InstrProfilingUtil.c @@ -67,7 +67,7 @@ void *lprofPtrFetchAdd(void **Mem, long ByteIncr) { #endif #ifdef COMPILER_RT_HAS_UNAME -int lprofGetHostName(char *Name, int Len) { +COMPILER_RT_VISIBILITY int lprofGetHostName(char *Name, int Len) { struct utsname N; int R; if (!(R = uname(&N))) @@ -76,7 +76,7 @@ int lprofGetHostName(char *Name, int Len) { } #endif -FILE *lprofOpenFileEx(const char *ProfileName) { +COMPILER_RT_VISIBILITY FILE *lprofOpenFileEx(const char *ProfileName) { FILE *f; int fd; #ifdef COMPILER_RT_HAS_FCNTL_LCK -- cgit v1.2.3