Commit Graph

3083 Commits

Author SHA1 Message Date
Nico Weber 3d53ecfc19 [gn build] port 74384c7fce 2022-08-12 08:10:16 -04:00
Nico Weber d299c033e6 [gn build] Make it possible to do PGO-optimized builds
This is fairly manual for now.

Differential Revision: https://reviews.llvm.org/D131710
2022-08-11 18:39:46 -04:00
LLVM GN Syncbot 88a521a048 [gn build] Port 9ae5896d96 2022-08-11 08:37:36 +00:00
LLVM GN Syncbot e04f8c81d5 [gn build] Port 7bece0f03b 2022-08-11 06:28:14 +00:00
LLVM GN Syncbot a5656496f0 [gn build] Port 7260cdd2e1 2022-08-11 06:28:12 +00:00
Nico Weber e4161e88f3 [gn build] port 59bb9e37c6 2022-08-08 14:16:30 -04:00
Nico Weber cf7c8bd74e [gn build] (manually) port ace6e172bd 2022-08-07 22:02:51 -04:00
Nico Weber f489297501 [gn build] fix 547c551925 2022-08-06 08:36:01 -04:00
Nico Weber 547c551925 [gn build] Try to fix build on linux after std=c++17 switch
glibc annotates `process_vm_readv` with `__THROW`.
lldb/include/lldb/Host/linux/Uio.h and
lldb/source/Host/linux/LibcGlue.cpp don't.

Having a mismatch causes an error with c++17:

    ../../lldb/source/Host/linux/LibcGlue.cpp:18:9:
        error: 'process_vm_readv' is missing exception specification 'throw()'
    ssize_t process_vm_readv(::pid_t pid, const struct iovec *local_iov,
            ^
    ../../lldb/include/lldb/Host/linux/Uio.h:18:9:
        note: previous declaration is here
    ssize_t process_vm_readv(::pid_t pid, const struct iovec *local_iov,
            ^

The diagnostic is a bit misleading, since the previous declaration
in the sysroot (in usr/include/x76_64-linux-gnu/bits/uio-ext.h) is
what has the `__THROW`.

In the cmake build, cmake sets `HAVE_PROCESS_VM_READV` correctly based
on header probing.

In the GN build, just set it to 1 unconditionally on linux. If that
turns out to not be good enough everywhere, we'll have to add a GN arg
for this.

(I'm also setting it to 1 on Android. I'm not sure if that's correct --
but we don't build lldb for Android anyways.)
2022-08-06 08:34:24 -04:00
Nico Weber c59c8a515f [gn build] port b1356504e6 better (c++17) 2022-08-06 07:54:43 -04:00
Nico Weber 51a91d6c5d [gn build] port b1356504e6 (c++17) 2022-08-06 07:51:06 -04:00
Nico Weber 35cc173846 [gn build] port 976f37050d more
Follow-up to commit 51d84737b5.
2022-08-04 15:33:35 -04:00
LLVM GN Syncbot ffb8d4a958 [gn build] Port 4038c859e5 2022-08-04 18:26:38 +00:00
LLVM GN Syncbot 2d47e0fd27 [gn build] Port 2138c90645 2022-08-04 14:49:27 +00:00
LLVM GN Syncbot 2b0d5e9e79 [gn build] Port a203acb9dd 2022-08-04 09:46:03 +00:00
LLVM GN Syncbot ca8de2d242 [gn build] Port 0cb9746a7d 2022-08-03 23:20:59 +00:00
LLVM GN Syncbot 670122b92b [gn build] Port 36c746ca2d 2022-08-03 23:08:51 +00:00
Nico Weber 96faef0f6e [gn build] Set LLVM_TOOLS_INSTALL_DIR to bin for llvm-config
Matches the CMake build, and might help with a flaky test on Windows.
See https://bugs.chromium.org/p/chromium/issues/detail?id=1348730#c2
for details.
2022-08-03 09:51:14 -04:00
LLVM GN Syncbot 7e8bf0a320 [gn build] Port 68264b6494 2022-08-03 05:46:25 +00:00
LLVM GN Syncbot 75f6a10d52 [gn build] Port 6bdb642234 2022-08-03 05:36:28 +00:00
LLVM GN Syncbot 3ddc280c03 [gn build] Port f9b4ea0ce9 2022-08-02 23:57:33 +00:00
LLVM GN Syncbot 577840bc7a [gn build] Port 95a92995d4 2022-08-02 21:01:56 +00:00
Nico Weber 5c6181fd9f [gn build] Port 88181375a3 more 2022-07-30 19:30:53 -04:00
Nico Weber 72d7989031 [gn build] Port 88181375a3 2022-07-30 18:58:10 -04:00
Nico Weber 2063b5ed24 [gn build] (manually) port 507125af3d more 2022-07-29 14:06:10 -04:00
Nico Weber 72d0db596c [gn build] (manually) port 507125af3d 2022-07-29 14:03:32 -04:00
LLVM GN Syncbot 59ea2c64d5 [gn build] Port d52e775b05 2022-07-28 14:44:36 +00:00
LLVM GN Syncbot cf0196db88 [gn build] Port c113594378 2022-07-28 14:37:35 +00:00
LLVM GN Syncbot e293802499 [gn build] Port bb7f62bbbd 2022-07-28 13:30:20 +00:00
Nico Weber dd428a571c [gn build] (manually) port 18b4a8bcf3 more 2022-07-28 07:14:43 -04:00
Martin Storsjö 18b4a8bcf3 [clang-tidy] Rename the make-confusable-table executable
Rename it to clang-tidy-confusable-chars-gen, to make its role
clearer in a wider context.

In cross builds, the caller might want to provide this tool
externally (to avoid needing to rebuild it in the cross build).
In such a case, having the tool properly namespaced makes its role
clearer.

This matches how the clang-pseudo-gen tool was renamed in
a43fef05d4 / D126725.

Differential Revision: https://reviews.llvm.org/D129798
2022-07-28 12:00:20 +03:00
LLVM GN Syncbot 3f6c6e94d6 [gn build] Port e01b4fe956 2022-07-28 08:23:10 +00:00
LLVM GN Syncbot 7fac9c9141 [gn build] Port 8a61749f76 2022-07-28 07:43:55 +00:00
LLVM GN Syncbot a35596675b [gn build] Port 6047deb7c2 2022-07-27 21:44:47 +00:00
LLVM GN Syncbot 0fdf8db727 [gn build] Port 0f3f357e26 2022-07-27 19:04:03 +00:00
Nico Weber 1870a8af15 [gn build] (semi-manually) port 6bdb15fe84 2022-07-27 07:31:32 -04:00
Tom Stellard 809855b56f Bump the trunk major version to 16 2022-07-26 21:34:45 -07:00
LLVM GN Syncbot c17420fdee [gn build] Port 4638d7a28f 2022-07-26 18:27:34 +00:00
Nico Weber 215a792cd5 [gn build] Port 8348c40956 2022-07-26 13:32:14 -04:00
LLVM GN Syncbot 38dce2959e [gn build] Port f4fb72e6d4 2022-07-26 15:44:44 +00:00
Nico Weber a97bb48db8 [gn build] (manually) port a5640968f2 2022-07-26 11:28:05 -04:00
Nico Weber 1ce9887213 [gn build] Port 7a5cb15ea6 2022-07-26 07:34:14 -04:00
Nico Weber a9b21ec484 [gn build] tweak how symbol_exports map files look on linux, for 94c00c10e
After bc39d7bdd4 (ported to GN in 94c00c10e), libclang uses symbol_exports,
and clang/test/LibClang/symbols.test wants the versioned name to be `LLVM_[0-9]$`
instead of `FOO`.
2022-07-26 01:52:00 -04:00
Nico Weber 94c00c10e8 [gn build] port bc39d7bdd4 (libclang.map -> libclang.exports) 2022-07-26 01:39:15 -04:00
LLVM GN Syncbot 80cb0cab4e [gn build] Port b7aa9c4ac8 2022-07-24 20:22:32 +00:00
LLVM GN Syncbot 81f0f5a0e5 [gn build] Port 46ae26e7eb 2022-07-24 17:43:27 +00:00
LLVM GN Syncbot 9daf945367 [gn build] Port 8184b252cd 2022-07-22 07:02:59 +00:00
LLVM GN Syncbot 674cab116d [gn build] Port 1d057a6d43 2022-07-21 21:26:59 +00:00
LLVM GN Syncbot 31049b3d2b [gn build] Port 1dad6247d2 2022-07-21 20:54:39 +00:00
LLVM GN Syncbot f6b5f24c19 [gn build] Port 4fcf8434dd 2022-07-21 00:53:15 +00:00
LLVM GN Syncbot 761e2a3abc [gn build] Port 23cf42e706 2022-07-20 20:02:41 +00:00
LLVM GN Syncbot 7a2a640969 [gn build] Port 857a78c04d 2022-07-20 16:42:40 +00:00
LLVM GN Syncbot 5b0e96a8ff [gn build] Port 5dd19ada57 2022-07-20 03:15:57 +00:00
LLVM GN Syncbot 41f6a21025 [gn build] Port 1b1f1c7786 2022-07-19 22:44:22 +00:00
Nico Weber 374db8fc2e [gn build] (manually) port c91ce94144 (HTMLForestResources.inc) 2022-07-19 16:51:30 -04:00
Nico Weber 6d7455bbcb [gn build] fix typo 2022-07-19 14:23:46 -04:00
Nico Weber 6bf817cf34 [gn build] (manually) port e939bf67e3 2022-07-19 14:23:26 -04:00
Nico Weber 2d8c74cf49 [gn build] (manually) port 4539b44148 (llvm-dwarfutil) 2022-07-19 11:50:54 -04:00
Nico Weber c46c1a24a4 [gn build] (manually) port 8711fcae27 2022-07-19 11:38:00 -04:00
LLVM GN Syncbot 5114e2c50a [gn build] Port 8ed702b83f 2022-07-19 06:42:58 +00:00
LLVM GN Syncbot 42fdb487d7 [gn build] Port e24b390dbc 2022-07-18 17:45:05 +00:00
LLVM GN Syncbot 81a059a8d4 [gn build] Port 0f9d9edd24 2022-07-18 17:45:04 +00:00
LLVM GN Syncbot 429de1437d [gn build] Port 4b03ad6506 2022-07-18 12:40:10 +00:00
Nico Weber a586c15bbb [gn build] (manually) port 70914aa631 2022-07-18 08:06:57 -04:00
LLVM GN Syncbot c9e8c690ea [gn build] Port 4162aefad1 2022-07-16 00:15:08 +00:00
LLVM GN Syncbot ca1cfa3f82 [gn build] Port 32d8d23cd0 2022-07-15 16:46:00 +00:00
LLVM GN Syncbot aff6a022a8 [gn build] Port 263dcf452f 2022-07-15 08:36:57 +00:00
LLVM GN Syncbot bc432c9634 [gn build] Port 7ced9fff95 2022-07-15 04:37:28 +00:00
LLVM GN Syncbot 426d7bc130 [gn build] Port a83004f4ff 2022-07-14 19:46:00 +00:00
LLVM GN Syncbot 728217cd60 [gn build] Port 1a8468ba61 2022-07-14 17:28:37 +00:00
LLVM GN Syncbot fdcd95994d [gn build] Port 3e9cc543f2 2022-07-14 11:06:28 +00:00
Nico Weber e8388b7542 [gn build] fix building lldb after b5ccfeb6bf 2022-07-13 21:05:36 -04:00
Nico Weber 8b391cd908 [gn build] (semi-manually) Port 5acd471698 2022-07-13 18:37:00 -04:00
LLVM GN Syncbot 50c627b790 [gn build] Port 3ce78cbd23 2022-07-13 20:38:59 +00:00
LLVM GN Syncbot cc35aa0d22 [gn build] Port a5c0638dec 2022-07-13 20:25:34 +00:00
LLVM GN Syncbot 685a3d7b8d [gn build] Port 101d1e9b3c 2022-07-13 18:31:08 +00:00
LLVM GN Syncbot 879164a3f1 [gn build] Port c9666d2339 2022-07-13 10:35:56 +00:00
Wei Yi Tee c9666d2339 [clang][dataflow] Generate readable form of boolean values.
Differential Revision: https://reviews.llvm.org/D129547
2022-07-13 10:35:17 +00:00
LLVM GN Syncbot 1032d34c42 [gn build] Port db995d72db 2022-07-12 18:54:07 +00:00
Zequan Wu b74a01a80b Reland "[LLDB][NFC] Decouple dwarf location table from DWARFExpression."
This reland 227dffd0b6 and
562c3467a6 with failed api tests fixed by keeping
function base file addres in DWARFExpressionList.
2022-07-12 10:54:24 -07:00
Nico Weber 2fe4a7e2de [gn build] (manually) port dc63ad8878 2022-07-12 12:36:48 -04:00
LLVM GN Syncbot db83a32c9e [gn build] Port 2240d72f15 2022-07-12 16:26:51 +00:00
LLVM GN Syncbot a4b6c283e1 [gn build] Port 73ebcabff2 2022-07-12 09:49:13 +00:00
LLVM GN Syncbot 0fbb0ca810 [gn build] Port d6d0dc1f45 2022-07-12 07:12:21 +00:00
Nico Weber 77ccc480ba [gn build] (manually) port ce233e7146 2022-07-11 20:14:26 -04:00
LLVM GN Syncbot dda208c51e [gn build] Port 7d426a392f 2022-07-11 19:17:30 +00:00
LLVM GN Syncbot de5d7bf975 [gn build] Port c8a28ae214 2022-07-11 16:57:49 +00:00
LLVM GN Syncbot f1867af580 [gn build] Port 69fcf4fd5a 2022-07-11 16:19:49 +00:00
LLVM GN Syncbot ffecf916d5 [gn build] Port 96b674f23c 2022-07-11 06:02:59 +00:00
LLVM GN Syncbot 73e68266d9 [gn build] Port c945bd0da6 2022-07-08 20:59:26 +00:00
LLVM GN Syncbot 46e984b0bf [gn build] Port 23c7328bad 2022-07-08 18:34:42 +00:00
Arthur Eubanks 095a493cea [gn build] Manually port d2ead9e3 2022-07-08 09:49:21 -07:00
LLVM GN Syncbot fad7d53a5f [gn build] Port 1cdec6c96e 2022-07-08 12:39:02 +00:00
Louis Dionne d2e86866be [libc++] Re-apply the use of ABI tags to provide per-TU insulation
This commit re-applies 9ee97ce3b8, which was reverted by 61d417ce
because it broke the LLDB data formatter tests. It also re-applies
6148c79a (the manual GN change associated to it).

Differential Revision: https://reviews.llvm.org/D127444
2022-07-08 08:38:36 -04:00
Jonas Devlieghere e4c5bca597
Revert "[LLDB][NFC] Decouple dwarf location table from DWARFExpression."
This reverts commit 227dffd0b6 and its
follow up 562c3467a6 because it breaks a
bunch of tests on GreenDragon:

https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/45155/
2022-07-07 16:36:10 -07:00
Nico Weber b2998143a7 [gn build/mac] Use -mmacos-version-min instead of -mmacosx-version-min
The two flags do the same thing, but the OS is called macOS these days.

(The new flag is 5 years old: https://reviews.llvm.org/D32796)

No behavior change.
2022-07-07 23:56:37 +02:00
Nico Weber 5812f9f10a [gn build] (manually) port 36f01909a0 (llvm-debuginfod)
LLVM_ENABLE_HTTPLIB is always off in the GN build. This means the
test for this won't run, so it's not really necessary to add the
llvm-debuginfod binary (and the binary might not even be that
interesting with LLVM_ENABLE_HTTPLIB off). But maybe we want
to add support for LLVM_ENABLE_HTTPLIB at some point, so let's
add the binary too. (Usually we wouldn't, since it's not needed
to get tests to pass.)
2022-07-07 23:31:33 +02:00
Zequan Wu 227dffd0b6 [LLDB][NFC] Decouple dwarf location table from DWARFExpression.
Differential Revision: https://reviews.llvm.org/D125509
2022-07-07 10:26:58 -07:00
Nico Weber 636bc544cc Revert "[gn build] (manually) port 9ee97ce3b8305c5"
This reverts commit 6148c79a64.
9ee97ce3b8 was reverted in 61d417ceff.
2022-07-07 18:11:15 +02:00
LLVM GN Syncbot d1c33c60f3 [gn build] Port 8366e21ef1 2022-07-06 19:34:19 +00:00
Nico Weber 6148c79a64 [gn build] (manually) port 9ee97ce3b8 2022-07-06 21:33:45 +02:00
Nico Weber 8f83f8f999 [gn build] (manually) port 484b1aa611 2022-07-06 21:23:17 +02:00
Nico Weber 67d82b50cf [gn build] (manually) port e0b5208650 2022-07-06 21:19:59 +02:00
LLVM GN Syncbot 8a668671a0 [gn build] Port f8cbe3cdf0 2022-07-06 17:46:18 +00:00
LLVM GN Syncbot f8e026457e [gn build] Port 08e4fe6c61 2022-07-06 14:24:15 +00:00
LLVM GN Syncbot 6bb17d7fac [gn build] Port 05130a6ba7 2022-07-05 21:04:41 +00:00
LLVM GN Syncbot 7b1ff859fe [gn build] Port b8dbc6ffea 2022-07-05 16:35:01 +00:00
LLVM GN Syncbot cccc03df3c [gn build] Port d1af09ad96 2022-07-05 13:57:20 +00:00
Peter Waller 220366d5b5 [gn build] (manually) port 6b3956e123
Differential Revision: https://reviews.llvm.org/D129080
2022-07-05 09:12:30 +00:00
Nico Weber b6ad8cbb35 [gn build] (manually) port dfb77f2e99 2022-07-05 10:59:41 +02:00
LLVM GN Syncbot 3912928aa8 [gn build] Port 25607d143d 2022-07-04 12:44:50 +00:00
LLVM GN Syncbot e1f61d8642 [gn build] Port 2aea8af251 2022-07-03 16:05:49 +00:00
LLVM GN Syncbot 0dbf0ba033 [gn build] Port d2d8b0aa4f 2022-07-02 01:13:41 +00:00
LLVM GN Syncbot 9c4d301ddd [gn build] Port 228c8f9cc0 2022-07-02 01:13:40 +00:00
LLVM GN Syncbot 17c8119564 [gn build] Port 94c7b89fe5 2022-07-01 23:35:58 +00:00
Arthur Eubanks 3d7aeb3c73 [gn build] Manually port 43dc3190 2022-07-01 11:39:04 -07:00
LLVM GN Syncbot 372a26acfd [gn build] Port 554aea52d7 2022-07-01 17:14:07 +00:00
Nico Weber 12109a3b40 [gn build] (manually) port fe66aebd75 (PseudoCLI) 2022-07-01 10:45:35 +02:00
Nico Weber bacb56cdc5 [gn build] (manually) port cd2292ef82 (PseudoCXX)
This target will be used in the next commit.
2022-07-01 10:45:35 +02:00
LLVM GN Syncbot acab4b69a4 [gn build] Port 0f94d2b385 2022-06-30 21:13:26 +00:00
LLVM GN Syncbot 7903b35a71 [gn build] Port a591c7ca0d 2022-06-30 13:27:00 +00:00
LLVM GN Syncbot 364673dbe7 [gn build] Port cfb7ffdec0 2022-06-30 10:11:58 +00:00
LLVM GN Syncbot a5a3b5178d [gn build] Port 72cd6b6c83 2022-06-30 10:11:58 +00:00
Sam Estep 6a97be27a1 [clang][dataflow] Delete SourceLocationsLattice
This patch deletes the now-unused `SourceLocationsLattice` class, along with its containing files and surrounding helper functions and tests.

Reviewed By: xazax.hun, ymandel, sgatev, gribozavr2

Differential Revision: https://reviews.llvm.org/D128448
2022-06-29 20:14:07 +00:00
Zequan Wu bed15f16d6 [gn] Manual port a7d6c3effe 2022-06-29 13:11:45 -07:00
LLVM GN Syncbot 906f52f2c4 [gn build] Port 77df3be0de 2022-06-28 21:25:13 +00:00
LLVM GN Syncbot 403466860b [gn build] Port 03975b7f0e 2022-06-28 09:52:16 +00:00
LLVM GN Syncbot 03859994b3 [gn build] Port eb5af0acf0 2022-06-27 17:44:48 +00:00
LLVM GN Syncbot e84674f7ac [gn build] Port 633d1d0df7 2022-06-27 12:35:34 +00:00
LLVM GN Syncbot 475d722ace [gn build] Port 9ed2e68c9a 2022-06-26 02:21:47 +00:00
LLVM GN Syncbot 303b214699 [gn build] Port c92056d038 2022-06-25 17:03:46 +00:00
LLVM GN Syncbot 73709fe09c [gn build] Port b847692ed8 2022-06-25 01:03:12 +00:00
Nico Weber 012412d192 [gn build] (manually) port 97579dcc6d (LLVMMCATests)
The CMake code makes a number of imho strange choices. I pointed those
out on https://reviews.llvm.org/D127083.

The GN build mirrors the CMake build's choices for now.
2022-06-24 21:02:35 -04:00
LLVM GN Syncbot 05558c0692 [gn build] Port 7a3918b540 2022-06-24 11:33:41 +00:00
LLVM GN Syncbot f09dad0c85 [gn build] Port 6546fdbe36 2022-06-24 11:18:35 +00:00
LLVM GN Syncbot 57b0d940d5 [gn build] Port 4045b62d4c 2022-06-23 15:49:40 +00:00
LLVM GN Syncbot af41955a49 [gn build] Port 2c3bbac0c7 2022-06-23 11:53:18 +00:00
LLVM GN Syncbot 1cb8c87c13 [gn build] Port 2962f9df7c 2022-06-23 02:41:57 +00:00
Nico Weber 1af1e91bba [gn build] Port c3574ef739 slightly better
The name of the host binary changed from make_confusable_table to
make-confusable-table, so match that.
2022-06-22 10:44:09 -04:00
Nico Weber 721875db2b Reland "[gn build] (manually) port b94db7ed7e (Confusables.inc)"
b94db7ed7e relanded in c3574ef739.

This relands commit 180bae08a0, rebased across the new version of
commit c3574ef739, and rebased across 10f7255d32.
2022-06-22 10:38:14 -04:00
LLVM GN Syncbot bc74bca536 [gn build] Port 77ad77c071 2022-06-22 05:44:50 +00:00
LLVM GN Syncbot 8b8d126598 [gn build] Port 79fbee3cc5 2022-06-21 21:53:32 +00:00
LLVM GN Syncbot beb8580544 [gn build] Port 6a4056ab2a 2022-06-21 14:01:32 +00:00
LLVM GN Syncbot 6904309c3a [gn build] Port 6ede652050 2022-06-21 11:45:40 +00:00
LLVM GN Syncbot b89f483064 [gn build] Port a71fe49bb5 2022-06-21 02:57:40 +00:00
LLVM GN Syncbot 809999aabb [gn build] Port 60f3b07118 2022-06-20 08:23:18 +00:00
LLVM GN Syncbot 7022e6d0f2 [gn build] Port 3adc908b26 2022-06-18 02:23:50 +00:00
Nico Weber 527395bd10 [gn build] (manually) port 2040b6df0a (DebugInfoSymbolizerTests) 2022-06-17 13:37:11 -04:00
LLVM GN Syncbot fd5a26e610 [gn build] Port 971e9c80e9 2022-06-17 17:10:15 +00:00
Nico Weber c2bb2e5973 [gn build] (manually) port 7cca33b40f
Not really needed for anything as far as I can tell (?),
more for completeness.
2022-06-17 11:51:10 -04:00