Joseph Huber
5a88dffc40
[Clang] Only define wchar_size module flag if non-standard ( #184668 )
...
Summary:
This PR simply changes the behavior of the `wchar_size` flag. Currently,
we emit this in all cases for all targets. This causes problems during
LLVM-IR linking, specifically because this would vary between Linux and
Windows in unintuitive ways. Now we have an llvm::Triple helper to
determine the size from the known values. The module flag will only be
emitted if these do not match (indicating a non-standard environment).
In addition to fixing AMDGCN bitcode linking, this also means we don't
need to bloat *every* IR module compiled by clang with this flag. The
changed tests reflects this, one less unnecessary piece of metadata.
2026-03-04 16:13:48 -06:00
..
2025-10-22 10:58:38 -07:00
2026-02-25 13:53:44 +00:00
2025-06-17 15:55:14 +01:00
2025-11-05 14:48:50 -08:00
2025-07-14 08:17:33 +01:00
2025-11-11 13:33:33 +01:00
2026-02-27 15:19:14 -08:00
2026-02-15 12:06:42 -05:00
2026-01-12 12:18:01 -08:00
2026-01-21 08:44:51 -08:00
2025-08-22 10:33:46 -07:00
2025-10-01 08:58:47 +02:00
2025-06-05 22:58:15 -07:00
2025-12-02 05:48:18 -08:00
2026-01-12 12:18:01 -08:00
2025-05-27 15:14:20 -07:00
2026-02-28 10:44:40 +00:00
2026-03-03 06:47:28 +00:00
2026-03-03 12:45:26 +00:00
2026-01-13 21:19:39 +00:00
2026-03-01 10:16:16 +00:00
2025-10-01 15:32:07 -07:00
2026-02-18 09:34:49 +05:30
2026-01-14 09:40:29 +00:00
2025-08-19 01:11:16 +08:00
2026-03-04 07:51:15 +00:00
2025-11-10 09:07:06 -08:00
2026-02-11 20:49:41 +00:00
2025-05-27 15:14:20 -07:00
2025-11-05 09:18:49 -08:00
2026-03-03 19:34:50 +00:00
2025-05-22 17:17:02 +02:00
2026-01-22 01:21:31 +00:00
2025-10-29 21:50:12 +00:00
2025-10-28 16:14:46 -07:00
2026-01-13 08:44:48 -08:00
2025-12-15 10:16:06 -08:00
2026-01-12 12:18:01 -08:00
2026-03-03 06:47:28 +00:00
2026-02-23 18:06:47 -08:00
2025-11-20 00:14:50 +08:00
2026-03-03 12:45:26 +00:00
2026-01-27 13:05:03 +05:30
2025-05-20 06:47:25 -07:00
2026-03-03 06:47:28 +00:00
2026-01-21 08:44:51 -08:00
2026-01-02 20:42:56 -08:00
2026-01-23 12:10:55 +01:00
2026-02-15 12:06:42 -05:00
2026-03-04 09:44:44 +01:00
2026-02-15 12:06:42 -05:00
2026-03-02 21:30:15 +00:00
2025-05-27 15:14:20 -07:00
2026-02-02 08:26:51 +00:00
2026-02-27 10:19:03 -08:00
2025-06-30 07:23:04 -07:00
2026-02-02 21:26:49 +00:00
2026-01-28 22:46:25 -05:00
2025-09-23 14:54:29 -07:00
2025-10-22 20:41:39 +01:00
2026-02-12 12:55:54 -08:00
2026-02-27 11:36:24 +01:00
2026-02-27 11:36:24 +01:00
2025-10-20 07:28:50 -07:00
2026-02-06 15:33:04 +00:00
2026-02-28 12:44:25 -08:00
2026-02-15 12:06:42 -05:00
2025-10-01 15:32:07 -07:00
2025-06-30 07:23:04 -07:00
2025-11-06 07:57:05 -08:00
2025-12-03 22:00:12 +01:00
2026-02-27 10:41:54 +00:00
2026-02-16 09:14:57 +00:00
2026-02-24 16:14:44 +00:00
2025-12-09 21:00:27 +03:00
2025-11-12 17:21:06 +00:00
2026-02-06 09:49:14 -08:00
2026-03-04 16:13:48 -06:00
2026-03-02 21:14:04 +08:00
2025-11-10 12:17:12 +00:00
2025-11-10 12:17:12 +00:00
2025-09-16 17:59:31 +02:00
2025-12-10 23:14:34 +05:30
2026-03-04 20:12:28 +01:00
2026-02-09 15:32:04 +00:00