1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test
Jordan Rupprecht 1fea6bcbb3 [llvm-strip] Fix -p|--preserve-dates to not truncate output when used in-place.
The restoreDateOnFile() method used to preserve dates uses sys::fs::openFileForWrite(). That method defaults to opening files with CD_CreateAlways, which truncates the output file if it exists. Use CD_OpenExisting instead to open it and *not* truncate it, which also has the side benefit of erroring if the file does not exist (it should always exist, because we just wrote it out).

Also, fix the test case to make sure the output is a valid output file, and not empty. The extra test assertions are enough to catch this regression.

llvm-svn: 340996
2018-08-29 23:21:56 +00:00
..
Analysis [InstCombine] remove unnecessary shuffle undef folding 2018-08-29 13:24:34 +00:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen AMDGPU: Handle 32-bit address wraparounds for SMRD opcodes 2018-08-29 20:03:00 +00:00
DebugInfo [codeview] Clean up machinery for deferring .cv_loc emission 2018-08-28 23:25:59 +00:00
Demangle Add support for various C++14 demanglings. 2018-08-29 04:12:44 +00:00
Examples
ExecutionEngine [ORC] Add a testcase for r338975. 2018-08-28 22:50:59 +00:00
Feature
FileCheck
Instrumentation Revert "[libFuzzer] Port to Windows" 2018-08-29 18:40:41 +00:00
Integer
JitListener
Linker
LTO
MC [mips] Add missing instructions 2018-08-29 11:35:03 +00:00
Object
ObjectYAML
Other Revert r340922 "[GVNHoist] Re-enable GVNHoist by default" 2018-08-29 13:00:55 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO/X86 [lit, python] Remove quotes around %python in cache.ll 2018-08-27 16:33:13 +00:00
tools [llvm-strip] Fix -p|--preserve-dates to not truncate output when used in-place. 2018-08-29 23:21:56 +00:00
Transforms Revert r340947 "[InstCombine] Expand the simplification of pow() into exp2()" 2018-08-29 22:58:33 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh