diff options
| author | Bob Haarman <llvm@inglorion.net> | 2016-11-29 15:24:00 +0000 |
|---|---|---|
| committer | Bob Haarman <llvm@inglorion.net> | 2016-11-29 15:24:00 +0000 |
| commit | 9ee65aca3daf67f9b32e58fafcde866b317f3a57 (patch) | |
| tree | f92eac5099b571e4f75830815bede344a6b28158 /llvm/lib | |
| parent | b2a346d5e40e9cbd344c6389a27709205a560159 (diff) | |
| download | bcm5719-llvm-9ee65aca3daf67f9b32e58fafcde866b317f3a57.tar.gz bcm5719-llvm-9ee65aca3daf67f9b32e58fafcde866b317f3a57.zip | |
[profile] use GetComputerNameExW instead of gethostname on Windows
Summary: In profile data paths, we replace "%h" with the hostname of the machine the program is running on. On Windows, we used gethostname() to obtain the hostname. This requires linking with ws2_32. With this change, we instead get the hostname from GetComputerNameExW(), which does not require ws2_32.
Reviewers: rnk, vsk, amccarth
Subscribers: zturner, ruiu, hans
Differential Revision: https://reviews.llvm.org/D27178
llvm-svn: 288146
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions

