Skip to content

Commit

Permalink
[profile] Provide lprofGetHostName for all windows environments
Browse files Browse the repository at this point in the history
This function doesn't use anything MSVC specific but works fine
for any _WIN32 target.

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

llvm-svn: 353918
  • Loading branch information
mstorsjo committed Feb 13, 2019
1 parent 73ec003 commit 7eb4ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/profile/InstrProfilingUtil.c
Expand Up @@ -80,7 +80,7 @@ void *lprofPtrFetchAdd(void **Mem, long ByteIncr) {

#endif

#ifdef _MSC_VER
#ifdef _WIN32
COMPILER_RT_VISIBILITY int lprofGetHostName(char *Name, int Len) {
WCHAR Buffer[COMPILER_RT_MAX_HOSTLEN];
DWORD BufferSize = sizeof(Buffer);
Expand Down

0 comments on commit 7eb4ec2

Please sign in to comment.