1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/tools
Martin Storsjö 102c71a022 [llvm-rc] Handle driveless absolute windows paths when loading external files
When llvm-rc loads an external file, it looks for it relative to
a number of include directories and the current working directory.
If the path is considered absolute, llvm-rc tries to open the
filename as such, and doesn't try to open it relative to other
paths.

On Windows, a path name like "\dir\file" isn't considered absolute
as it lacks the drive name, but by appending it on top of the search
dirs, it's not found.

LLVM's sys::path::append just appends such a path (same with a properly
absolute posix path) after the paths it's supposed to be relative to.

This fix doesn't handle the case if the resource script and the
external file are on a different drive than the current working
directory; to fix that, we'd have to make LLVM's sys::path::append
handle appending fully absolute and partially absolute paths (ones
lacking a drive prefix but containing a root directory), or switch
to C++17's std::filesystem.

Differential Revision: https://reviews.llvm.org/D92558
2020-12-10 14:11:06 +02:00
..
dsymutil [llvm] fix global_downgraded_to_static test 2020-11-18 17:22:02 +01:00
gold Rename -plugin-opt=no-new-pass-manager to -plugin-opt=legacy-pass-manager 2020-12-09 16:43:30 -08:00
llc [llc] Use -filetype=null to disable MIR printing 2020-10-16 16:51:56 +01:00
llvm-ar [llvm-ar][test][AIX] Unsupport error-opening-directory.test on AIX 2020-07-13 12:00:07 -04:00
llvm-as [test] Run llvm/test/**/*.yaml & don't run llvm/test/**/*.cxx (not exist) 2020-07-08 10:22:49 -07:00
llvm-cfi-verify
llvm-config [Test] Tidy up loose ends from LLVM_HAS_GLOBAL_ISEL 2020-08-27 16:36:27 +01:00
llvm-cov s/instantate/instantiate/ throughout. NFCI. 2020-12-01 22:13:40 -05:00
llvm-cvtres
llvm-cxxdump
llvm-cxxfilt
llvm-cxxmap
llvm-diff
llvm-dlltool Make test/tools/llvm-dlltool/tool-name.test pass, and make it run 2020-11-03 11:59:15 -05:00
llvm-dwarfdump [Triple][MachO] Define "arm64e", an AArch64 subarch for Pointer Auth. 2020-12-03 07:53:59 -08:00
llvm-dwp
llvm-elfabi [llvm-elfabi] Emit ELF .dynsym, .dynamic sections 2020-11-24 00:17:04 -08:00
llvm-exegesis [llvm-exegesis][X86] Save and restore eflags. 2020-11-04 10:44:15 +01:00
llvm-extract
llvm-gsymutil [yaml2obj] - ProgramHeaders: introduce FirstSec/LastSec instead of Sections list. 2020-11-09 13:00:50 +03:00
llvm-ifs [llvm-readobj] Update tests because of changes in llvm-readobj behavior 2020-07-20 10:39:04 +01:00
llvm-isel-fuzzer
llvm-lib [llvm-lib] Support adding short import library objects with llvm-lib 2020-07-24 22:15:08 +03:00
llvm-libtool-darwin [llvm-libtool-darwin] Add support for LLVM bitcode files 2020-10-29 12:00:44 -07:00
llvm-link [llvm-link] use file magic when deciding if input should be loaded as archive 2020-12-02 17:21:34 -08:00
llvm-lipo [llvm-lipo] Add support for bitcode files 2020-08-25 21:11:18 -07:00
llvm-lit
llvm-locstats
llvm-lto
llvm-lto2
llvm-mc
llvm-mca [AArch64] Enable Cortex-A55 schedmodel 2020-11-30 19:28:34 +00:00
llvm-ml [ms] [llvm-ml] Support command-line defines 2020-12-01 18:06:05 -05:00
llvm-modextract
llvm-mt
llvm-nm [llvm-nm][MachO] Don't call getFlags on redacted symbols 2020-12-04 21:48:53 -08:00
llvm-objcopy [llvm-objcopy] --only-keep-debug: place zero-size segment according to its parent segment 2020-11-11 09:21:10 -08:00
llvm-objdump [Triple][MachO] Define "arm64e", an AArch64 subarch for Pointer Auth. 2020-12-03 07:53:59 -08:00
llvm-opt-fuzzer
llvm-opt-report
llvm-pdbutil
llvm-profdata [SampleFDO] Store fixed length MD5 in NameTable instead of using ULEB128 if 2020-12-08 16:21:01 -08:00
llvm-profgen [llvm-profgen][NFC] Fix test failure by making unwinder's output deterministic 2020-12-07 22:36:25 -08:00
llvm-ranlib
llvm-rc [llvm-rc] Handle driveless absolute windows paths when loading external files 2020-12-10 14:11:06 +02:00
llvm-readobj [llvm-readelf/obj] - Improve diagnostics when printing NT_FILE notes. 2020-12-09 12:31:46 +03:00
llvm-size [llvm-size] Output REL, RELA and STRTAB sections when allocatable 2020-07-01 12:02:32 +01:00
llvm-split
llvm-strings Add test utility 'split-file' 2020-08-03 20:42:09 -07:00
llvm-symbolizer Fixup test in path to use C:\ instead of D:\ which may be mapped to a removable. 2020-12-07 16:36:58 -08:00
llvm-xray Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930). 2020-11-18 13:08:46 +03:00
lto Fix llvm/test/tools/lto/hide-linkonce-odr.ll 2020-08-21 18:32:35 -07:00
not Disable 'not' test on Windows because 'env' from GnuWin32 cannot be used without arguments. 2020-08-24 21:55:34 -04:00
obj2yaml [obj2yaml] - Support dumping objects that have multiple SHT_SYMTAB_SHNDX sections. 2020-12-09 12:14:58 +03:00
opt-viewer
sancov
sanstats
split-file Add test utility 'split-file' 2020-08-03 20:42:09 -07:00
UpdateTestChecks [UpdateTestChecks] Fix $ in function test for ARM. 2020-11-13 12:26:56 +01:00
yaml2obj [yaml2obj,obj2yaml] - Make Symbol::Section field optional. 2020-12-04 13:45:47 +03:00