[PATCH] D58106: [compiler-rt] [profile] Provide lprofGetHostName for all windows environments

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 12 23:26:49 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL353918: [profile] Provide lprofGetHostName for all windows environments (authored by mstorsjo, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D58106?vs=186410&id=186589#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58106/new/

https://reviews.llvm.org/D58106

Files:
  compiler-rt/trunk/lib/profile/InstrProfilingUtil.c


Index: compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
===================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
+++ compiler-rt/trunk/lib/profile/InstrProfilingUtil.c
@@ -80,7 +80,7 @@
 
 #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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58106.186589.patch
Type: text/x-patch
Size: 446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190213/4cc69375/attachment.bin>


More information about the cfe-commits mailing list