diff options
author | Pawel Bylica <chfast@gmail.com> | 2015-11-06 23:21:49 +0000 |
---|---|---|
committer | Pawel Bylica <chfast@gmail.com> | 2015-11-06 23:21:49 +0000 |
commit | b43221439c6e57c90dd231cba0c12ace0aee73c7 (patch) | |
tree | afda6be221219c5228f24f5d530ef386a9f959c3 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 472d937db78109b67629eb6827424810c8002e8c (diff) | |
download | bcm5719-llvm-b43221439c6e57c90dd231cba0c12ace0aee73c7.tar.gz bcm5719-llvm-b43221439c6e57c90dd231cba0c12ace0aee73c7.zip |
[Support] Use GetTempDir to get the temporary dir path on Windows.
Summary:
In general GetTempDir follows the same logic as the replaced code: checks env variables TMP, TEMP, USERPROFILE in order. However, it also perform other checks like making separators native (\), making the path absolute, etc.
This change fixes FileSystemTest.CreateDir unittest that had been failing when run from Unix-like shell on Windows (Unix-like path separator (/) used in env variables).
Reviewers: chapuni, rafael, aaron.ballman
Subscribers: rafael, llvm-commits
Differential Revision: http://reviews.llvm.org/D14231
llvm-svn: 252366
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions