[compiler-rt] r353918 - [profile] Provide lprofGetHostName for all windows environments
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 12 23:27:05 PST 2019
Author: mstorsjo
Date: Tue Feb 12 23:27:05 2019
New Revision: 353918
URL: http://llvm.org/viewvc/llvm-project?rev=353918&view=rev
Log:
[profile] Provide lprofGetHostName for all windows environments
This function doesn't use anything MSVC specific but works fine
for any _WIN32 target.
Differential Revision: https://reviews.llvm.org/D58106
Modified:
compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
Modified: compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingUtil.c?rev=353918&r1=353917&r2=353918&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingUtil.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingUtil.c Tue Feb 12 23:27:05 2019
@@ -80,7 +80,7 @@ void *lprofPtrFetchAdd(void **Mem, long
#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);
More information about the llvm-commits
mailing list