[wpiutil] Upgrade to LLVM 17.0.1 (#5482)

This commit is contained in:
Tyler Veness
2023-09-21 19:54:33 -07:00
committed by GitHub
parent 07a0d22fe6
commit 1b6ec5a95d
82 changed files with 1697 additions and 901 deletions

View File

@@ -171,43 +171,43 @@ def overwrite_tests(wpiutil_root, llvm_root):
def main():
upstream_root = clone_repo("https://github.com/llvm/llvm-project", "llvmorg-16.0.6")
upstream_root = clone_repo("https://github.com/llvm/llvm-project", "llvmorg-17.0.1")
wpilib_root = get_repo_root()
wpiutil = os.path.join(wpilib_root, "wpiutil")
# Apply patches to upstream Git repo
os.chdir(upstream_root)
for f in [
"0001-Fix-spelling-language-errors.patch",
"0002-Remove-StringRef-ArrayRef-and-Optional.patch",
"0003-Wrap-std-min-max-calls-in-parens-for-Windows-warning.patch",
"0004-Change-unique_function-storage-size.patch",
"0005-Threading-updates.patch",
"0006-ifdef-guard-safety.patch",
"0007-Explicitly-use-std.patch",
"0008-Remove-format_provider.patch",
"0009-Add-compiler-warning-pragmas.patch",
"0010-Remove-unused-functions.patch",
"0011-Detemplatize-SmallVectorBase.patch",
"0012-Add-vectors-to-raw_ostream.patch",
"0013-Extra-collections-features.patch",
"0014-EpochTracker-ABI-macro.patch",
"0015-Delete-numbers-from-MathExtras.patch",
"0016-Add-lerp-and-sgn.patch",
"0017-Fixup-includes.patch",
"0018-Use-std-is_trivially_copy_constructible.patch",
"0019-Windows-support.patch",
"0020-Prefer-fmtlib.patch",
"0021-Prefer-wpi-s-fs.h.patch",
"0022-Remove-unused-functions.patch",
"0023-OS-specific-changes.patch",
"0024-Use-SmallVector-for-UTF-conversion.patch",
"0025-Prefer-to-use-static-pointers-in-raw_ostream.patch",
"0026-constexpr-endian-byte-swap.patch",
"0027-Copy-type-traits-from-STLExtras.h-into-PointerUnion..patch",
"0028-Remove-StringMap-test-for-llvm-sort.patch",
"0029-Unused-variable-in-release-mode.patch",
"0030-Use-C-20-bit-header.patch",
"0001-Remove-StringRef-ArrayRef-and-Optional.patch",
"0002-Wrap-std-min-max-calls-in-parens-for-Windows-warning.patch",
"0003-Change-unique_function-storage-size.patch",
"0004-Threading-updates.patch",
"0005-ifdef-guard-safety.patch",
"0006-Explicitly-use-std.patch",
"0007-Remove-format_provider.patch",
"0008-Add-compiler-warning-pragmas.patch",
"0009-Remove-unused-functions.patch",
"0010-Detemplatize-SmallVectorBase.patch",
"0011-Add-vectors-to-raw_ostream.patch",
"0012-Extra-collections-features.patch",
"0013-EpochTracker-ABI-macro.patch",
"0014-Delete-numbers-from-MathExtras.patch",
"0015-Add-lerp-and-sgn.patch",
"0016-Fixup-includes.patch",
"0017-Use-std-is_trivially_copy_constructible.patch",
"0018-Windows-support.patch",
"0019-Prefer-fmtlib.patch",
"0020-Prefer-wpi-s-fs.h.patch",
"0021-Remove-unused-functions.patch",
"0022-OS-specific-changes.patch",
"0023-Use-SmallVector-for-UTF-conversion.patch",
"0024-Prefer-to-use-static-pointers-in-raw_ostream.patch",
"0025-constexpr-endian-byte-swap.patch",
"0026-Copy-type-traits-from-STLExtras.h-into-PointerUnion..patch",
"0027-Remove-StringMap-test-for-llvm-sort.patch",
"0028-Unused-variable-in-release-mode.patch",
"0029-Use-C-20-bit-header.patch",
"0030-Remove-DenseMap-GTest-printer-test.patch",
"0031-Replace-deprecated-std-aligned_storage_t.patch",
]:
git_am(