| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 187441
|
|
|
|
| |
llvm-svn: 187439
|
|
|
|
| |
llvm-svn: 187383
|
|
|
|
|
|
| |
This will let us use getUniqueID instead of st_dev directly on clang.
llvm-svn: 187378
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove LLVM_ENABLE_CRT_REPORT. LLVM_DISABLE_CRASH_REPORT made it redundant.
* set Return to 1, so that we get a stack trace on failure.
* don't call _exit, so that we get a negative exit value and "not --crash"
correctly differentiates crashes and regular errors.
This is a bit experimental since the documentation on this interface is sparse.
It doesn't bring up a dialog on my windows setup, but feel free to revert
if it causes problem for your setup (and let me know what it is so that I
can try to fix this patch).
llvm-svn: 187206
|
|
|
|
| |
llvm-svn: 186684
|
|
|
|
|
|
| |
It is similar to 186511, but for creating files for writing.
llvm-svn: 186679
|
|
|
|
|
|
|
|
|
| |
* assert that the return value is one of the documented values on msdn.
* on FILE_TYPE_UNKNOWN, check GetLastError.
Unfortunately I can't think of a way to get a FILE_TYPE_UNKNOWN on a test.
llvm-svn: 186595
|
|
|
|
|
|
|
|
|
| |
file_type::fifo_file in sys::fs::getStatus(HANDLE).
It fixes llvm/test/Other/close-stderr.ll on msys.
FIXME: Provide unittests.
llvm-svn: 186588
|
|
|
|
| |
llvm-svn: 186561
|
|
|
|
| |
llvm-svn: 186532
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This should fix the windows bots. It looks like the failing tests are of the
form
prog1 > file
prog2 file
and prog2 fails trying to read the file. The best fix would probably be to close
stdout/stderr in prog1, but it was not the intention of 186511 to change this,
so just restore the old behavior for now.
llvm-svn: 186530
|
|
|
|
|
|
|
|
|
|
|
| |
This has some advantages:
* Lets us use native, utf16 windows functions.
* Easy to produce good errors on windows about trying to use a
directory when we want a file.
* Simplifies the unix version a bit.
llvm-svn: 186511
|
|
|
|
| |
llvm-svn: 186413
|
|
|
|
| |
llvm-svn: 186378
|
|
|
|
|
|
|
| |
This opens the way of having static helpers in the .inc files that can
construct a file_status.
llvm-svn: 186376
|
|
|
|
| |
llvm-svn: 186310
|
|
|
|
| |
llvm-svn: 186301
|
|
|
|
|
|
| |
It fixes compatibility in llvm/test/Object/archive-toc.test.
llvm-svn: 186142
|
|
|
|
| |
llvm-svn: 186096
|
|
|
|
| |
llvm-svn: 186092
|
|
|
|
|
|
|
| |
While at it, use strftime on Unix too and use the thread safe versions
of localtime.
llvm-svn: 186090
|
|
|
|
|
|
|
|
|
|
| |
The status function is already using a syscall that returns the file size.
Remember it and implement file_size as a simple wrapper.
No functionally change, but clients that already use status now can avoid
calling file_size.
llvm-svn: 186016
|
|
|
|
| |
llvm-svn: 185834
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Don't try to create parent directories in unique_file. It had two problem:
* It violates the contract that it is atomic. If the directory creation
success and the file creation fails, we would return an error but the
file system was modified.
* When creating a temporary file clang would have to first check if the
parent directory existed or not to avoid creating one when it was not
supposed to.
* More efficient implementations of createUniqueDirectory and the unique_file
that produces only the file name. Now all 3 just call into a static
function passing what they want (name, file or directory).
Clang also has to be updated, so tests might fail if a bot picks up this commit
and not the corresponding clang one.
llvm-svn: 185126
|
|
|
|
| |
llvm-svn: 185015
|
|
|
|
| |
llvm-svn: 184960
|
|
|
|
| |
llvm-svn: 184916
|
|
|
|
|
|
| |
I will remove the V1 version as soon as I change clang in the next commit.
llvm-svn: 184914
|
|
|
|
| |
llvm-svn: 184910
|
|
|
|
| |
llvm-svn: 184853
|
|
|
|
| |
llvm-svn: 184852
|
|
|
|
| |
llvm-svn: 184478
|
|
|
|
|
|
| |
With this we can remove the last use of PathV1 from llvm-ar.cpp.
llvm-svn: 184464
|
|
|
|
|
|
| |
Use that in llvm-ar.cpp to replace a use of sys::PathWithStatus.
llvm-svn: 184450
|
|
|
|
| |
llvm-svn: 184431
|
|
|
|
|
|
| |
actually finds a unique identifier for a file. Also adds unit tests for GetUniqueID.
llvm-svn: 184351
|
|
|
|
| |
llvm-svn: 184311
|
|
|
|
| |
llvm-svn: 184298
|
|
|
|
| |
llvm-svn: 184235
|
|
|
|
| |
llvm-svn: 184233
|
|
|
|
| |
llvm-svn: 184229
|
|
|
|
| |
llvm-svn: 184219
|
|
|
|
| |
llvm-svn: 184217
|
|
|
|
|
|
|
|
| |
It looks like clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp
depends on the behaviour of the old one on Windows. Maybe a difference
between GetCurrentDirectoryA and GetCurrentDirectoryW?
llvm-svn: 184009
|
|
|
|
|
|
| |
GetCurrentDirectory is now unused. Remove it.
llvm-svn: 184003
|
|
|
|
| |
llvm-svn: 183996
|
|
|
|
| |
llvm-svn: 183992
|
|
|
|
| |
llvm-svn: 183979
|
|
|
|
| |
llvm-svn: 183950
|