[clang] [clang-repl] Teach clang-repl how to load PCHs. (PR #94166)

2024-06-10 Thread Lang Hames via cfe-commits
@@ -0,0 +1,14 @@ +// REQUIRES: host-supports-jit +// UNSUPPORTED: system-aix + +// RUN: rm -f %t.pch +// RUN: %clang_cc1 -fmax-type-align=16 -pic-level 2 -fdeprecated-macro -stack-protector 1 -fblocks -fskip-odr-check-in-gmf -fexceptions -fcxx-exceptions -fgnuc-version=0

[clang] [clang-repl] Keep the first llvm::Module empty to avoid invalid memory access. (PR #89031)

2024-04-19 Thread Lang Hames via cfe-commits
https://github.com/lhames approved this pull request. If there's a trivial reproducer for the original issue it may be worth adding it as a regression test. https://github.com/llvm/llvm-project/pull/89031 ___ cfe-commits mailing list

[clang] b251897 - Re-apply "[ORC] Add N_SO and N_OSO stabs entries to MachO debug..." with fixes.

2023-09-28 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-09-28T21:34:14-07:00 New Revision: b2518971d82331b09d7630ac1aecbb49e876a496 URL: https://github.com/llvm/llvm-project/commit/b2518971d82331b09d7630ac1aecbb49e876a496 DIFF: https://github.com/llvm/llvm-project/commit/b2518971d82331b09d7630ac1aecbb49e876a496.diff

[clang] 53a87b4 - [clang-repl] Disable LSan in clang-repl.

2023-09-27 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-09-27T21:39:48-07:00 New Revision: 53a87b4a6903c0c47337ca18697bb6355cc087d4 URL: https://github.com/llvm/llvm-project/commit/53a87b4a6903c0c47337ca18697bb6355cc087d4 DIFF: https://github.com/llvm/llvm-project/commit/53a87b4a6903c0c47337ca18697bb6355cc087d4.diff

[clang] 61b0f12 - Re-apply "[ORC][LLJIT] Move enable-debugger-support utility out of..."

2023-09-27 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-09-27T13:24:02-07:00 New Revision: 61b0f12d6b9cdcb6bb3dd679e3a3c36fa94daeae URL: https://github.com/llvm/llvm-project/commit/61b0f12d6b9cdcb6bb3dd679e3a3c36fa94daeae DIFF: https://github.com/llvm/llvm-project/commit/61b0f12d6b9cdcb6bb3dd679e3a3c36fa94daeae.diff

[clang] 31e01e9 - [clang-repl] Update FIXME based on feedback from @zero9178.

2023-09-27 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-09-27T13:04:18-07:00 New Revision: 31e01e9388667b9b34804f37202e1fed76e98030 URL: https://github.com/llvm/llvm-project/commit/31e01e9388667b9b34804f37202e1fed76e98030 DIFF: https://github.com/llvm/llvm-project/commit/31e01e9388667b9b34804f37202e1fed76e98030.diff

[clang] b4a8999 - Revert "[test][clang-repl][Orc] Lsan report workaround"

2023-09-27 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-09-27T11:44:33-07:00 New Revision: b4a89a5edf08af9e03324274ebdce7e032ce URL: https://github.com/llvm/llvm-project/commit/b4a89a5edf08af9e03324274ebdce7e032ce DIFF: https://github.com/llvm/llvm-project/commit/b4a89a5edf08af9e03324274ebdce7e032ce.diff

[clang] 47625fe - [clang-repl] Disable LSan in InterpreterExceptionTest.

2023-09-27 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-09-27T11:36:14-07:00 New Revision: 47625fea5e376082fca65d0ac644f07957605d86 URL: https://github.com/llvm/llvm-project/commit/47625fea5e376082fca65d0ac644f07957605d86 DIFF: https://github.com/llvm/llvm-project/commit/47625fea5e376082fca65d0ac644f07957605d86.diff

[clang] e5f169f - Revert "[ORC][LLJIT] Move enable-debugger-support utility out of LLJITBuilder."

2023-09-22 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-09-22T21:43:41-07:00 New Revision: e5f169f91a86af3490d9251387b3f5455941bb83 URL: https://github.com/llvm/llvm-project/commit/e5f169f91a86af3490d9251387b3f5455941bb83 DIFF: https://github.com/llvm/llvm-project/commit/e5f169f91a86af3490d9251387b3f5455941bb83.diff

[clang] e1a5bb5 - [ORC][LLJIT] Move enable-debugger-support utility out of LLJITBuilder.

2023-09-22 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-09-22T16:18:20-07:00 New Revision: e1a5bb59b91d60c0d87feb78f0e0614589a4c927 URL: https://github.com/llvm/llvm-project/commit/e1a5bb59b91d60c0d87feb78f0e0614589a4c927 DIFF: https://github.com/llvm/llvm-project/commit/e1a5bb59b91d60c0d87feb78f0e0614589a4c927.diff

[clang] f2b8666 - [ORC][clang-repl] Fix clang-repl -host-supports-jit option after 122ebe3b500.

2023-08-26 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-08-26T19:46:33-07:00 New Revision: f2b866653169d479a964f99b7679738742f6a6a2 URL: https://github.com/llvm/llvm-project/commit/f2b866653169d479a964f99b7679738742f6a6a2 DIFF: https://github.com/llvm/llvm-project/commit/f2b866653169d479a964f99b7679738742f6a6a2.diff

[clang] 86258bd - [ORC][clang-repl] Fix another unit test after 122ebe3b500.

2023-08-24 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-08-24T08:20:07-07:00 New Revision: 86258bda2016323d32efbe6a298654cd77cde644 URL: https://github.com/llvm/llvm-project/commit/86258bda2016323d32efbe6a298654cd77cde644 DIFF: https://github.com/llvm/llvm-project/commit/86258bda2016323d32efbe6a298654cd77cde644.diff

[clang] 8a62d6b - [ORC][clang-repl] Fix UnitTest after 122ebe3b500.

2023-08-23 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-08-23T17:19:07-07:00 New Revision: 8a62d6ba7edc3a7d397e52884a9ce63b4e579ae1 URL: https://github.com/llvm/llvm-project/commit/8a62d6ba7edc3a7d397e52884a9ce63b4e579ae1 DIFF: https://github.com/llvm/llvm-project/commit/8a62d6ba7edc3a7d397e52884a9ce63b4e579ae1.diff

[clang] 231107a - Re-apply "[ORC] LLJIT updates: ExecutorNativePlatform, default ..." with fixes.

2023-04-07 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-04-08T02:40:58Z New Revision: 231107a8b5be77d1c76975b0363976ba3211fa37 URL: https://github.com/llvm/llvm-project/commit/231107a8b5be77d1c76975b0363976ba3211fa37 DIFF: https://github.com/llvm/llvm-project/commit/231107a8b5be77d1c76975b0363976ba3211fa37.diff LOG:

[libunwind] 0751fc6 - [libunwind] On Darwin, add a callback-based lookup scheme for JIT'd unwind info.

2023-02-10 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2023-02-10T14:36:25-08:00 New Revision: 0751fc68b976d25dd3041217dad16622cf151cd6 URL: https://github.com/llvm/llvm-project/commit/0751fc68b976d25dd3041217dad16622cf151cd6 DIFF: https://github.com/llvm/llvm-project/commit/0751fc68b976d25dd3041217dad16622cf151cd6.diff

[clang] 9b1cf2e - Fix running orc-rt tests with LLVM_BUILD_EXTERNAL_COMPILER_RT (again).

2022-07-05 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2022-07-05T15:20:08-07:00 New Revision: 9b1cf2e2b2a8ca2bc10894d569a653429b989dd0 URL: https://github.com/llvm/llvm-project/commit/9b1cf2e2b2a8ca2bc10894d569a653429b989dd0 DIFF: https://github.com/llvm/llvm-project/commit/9b1cf2e2b2a8ca2bc10894d569a653429b989dd0.diff

[clang] 16dcbb5 - [ORC] Return ExecutorAddrs rather than JITEvaluatedSymbols from LLJIT::lookup.

2022-05-05 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2022-05-05T13:56:00-07:00 New Revision: 16dcbb53dc7968a3752661aac731172ebe0faf64 URL: https://github.com/llvm/llvm-project/commit/16dcbb53dc7968a3752661aac731172ebe0faf64 DIFF: https://github.com/llvm/llvm-project/commit/16dcbb53dc7968a3752661aac731172ebe0faf64.diff

[clang] 71a0609 - [clang-repl] Temporarily disable the execute.cpp test on ppc64.

2021-05-13 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2021-05-13T14:39:12-07:00 New Revision: 71a0609a2b533dbcd6826ad774b6bee5e9818644 URL: https://github.com/llvm/llvm-project/commit/71a0609a2b533dbcd6826ad774b6bee5e9818644 DIFF: https://github.com/llvm/llvm-project/commit/71a0609a2b533dbcd6826ad774b6bee5e9818644.diff

Re: [clang] 4a0267e - Convert a reachable llvm_unreachable into an assert.

2020-03-22 Thread Lang Hames via cfe-commits
Hi Dave, Aaron, and I spent a lot more time debugging than I should have because I was using > a release + asserts build and the semantics of llvm_unreachable made > unfortunate codegen (switching to an assert makes the issue > immediately obvious). Huh. I think we should be using

[clang] 490a9a4 - [examples] Fix the clang-interpreter example for changes in 85fb997659b.

2020-02-19 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2020-02-19T19:01:32-08:00 New Revision: 490a9a4b77ea23f388cae67d732af6bd8aa576f9 URL: https://github.com/llvm/llvm-project/commit/490a9a4b77ea23f388cae67d732af6bd8aa576f9 DIFF: https://github.com/llvm/llvm-project/commit/490a9a4b77ea23f388cae67d732af6bd8aa576f9.diff

[clang] b54aa05 - Update clang-interpreter example to incorporate changes in ce2207abaf9.

2020-01-21 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2020-01-21T22:00:50-08:00 New Revision: b54aa053d3aeeab0cdaecb6286419138b7da5ef4 URL: https://github.com/llvm/llvm-project/commit/b54aa053d3aeeab0cdaecb6286419138b7da5ef4 DIFF: https://github.com/llvm/llvm-project/commit/b54aa053d3aeeab0cdaecb6286419138b7da5ef4.diff

[clang] 41eeded - Fix the clang interpreter example which was broken by 4fc68b9b7f3e0.

2019-12-05 Thread Lang Hames via cfe-commits
Author: Lang Hames Date: 2019-12-05T02:42:35-08:00 New Revision: 41eeded804310df0719ecbc92a0e14b438213dbf URL: https://github.com/llvm/llvm-project/commit/41eeded804310df0719ecbc92a0e14b438213dbf DIFF: https://github.com/llvm/llvm-project/commit/41eeded804310df0719ecbc92a0e14b438213dbf.diff

r366511 - Update the SimpleJIT class in the clang-interpreter example to use ORCv2.

2019-07-18 Thread Lang Hames via cfe-commits
Author: lhames Date: Thu Jul 18 15:47:18 2019 New Revision: 366511 URL: http://llvm.org/viewvc/llvm-project?rev=366511=rev Log: Update the SimpleJIT class in the clang-interpreter example to use ORCv2. This will remove the ORCv1 deprecation warnings. Modified:

r366141 - [clang-fuzzer] Remove 'setUseOrcMCJITReplacement(false)' call.

2019-07-15 Thread Lang Hames via cfe-commits
Author: lhames Date: Mon Jul 15 15:27:57 2019 New Revision: 366141 URL: http://llvm.org/viewvc/llvm-project?rev=366141=rev Log: [clang-fuzzer] Remove 'setUseOrcMCJITReplacement(false)' call. The default value for this option (UseMCJITReplacement) is already false, and OrcMCJITReplacement is

r315532 - Update cc1as_main for MCCodeEmitter ownership change in r315531.

2017-10-11 Thread Lang Hames via cfe-commits
Author: lhames Date: Wed Oct 11 16:35:27 2017 New Revision: 315532 URL: http://llvm.org/viewvc/llvm-project?rev=315532=rev Log: Update cc1as_main for MCCodeEmitter ownership change in r315531. Modified: cfe/trunk/tools/driver/cc1as_main.cpp Modified: cfe/trunk/tools/driver/cc1as_main.cpp

r315411 - Update cc1as_main for MCAsmBackend ownership change in r315410.

2017-10-10 Thread Lang Hames via cfe-commits
Author: lhames Date: Tue Oct 10 18:58:08 2017 New Revision: 315411 URL: http://llvm.org/viewvc/llvm-project?rev=315411=rev Log: Update cc1as_main for MCAsmBackend ownership change in r315410. Modified: cfe/trunk/tools/driver/cc1as_main.cpp Modified: cfe/trunk/tools/driver/cc1as_main.cpp

Re: r305860 - Special-case handling of destructors in override lists when dumping ASTs.

2017-07-13 Thread Lang Hames via cfe-commits
com> > wrote: > >> Hi Lang, >> >> clang crashes when I compile the following code with "-Xclang -ast-dump”: >> >> class Base { >> public: >> virtual void operator()() {} >> }; >> >> class Derived : public Base { >> public: >&

r307959 - Use getNameAsString instead of getName to get method names when dumping

2017-07-13 Thread Lang Hames via cfe-commits
Author: lhames Date: Thu Jul 13 14:08:29 2017 New Revision: 307959 URL: http://llvm.org/viewvc/llvm-project?rev=307959=rev Log: Use getNameAsString instead of getName to get method names when dumping overrides: getName can fail if the decl's name isn't a simple identifier. This is a more

Re: r305860 - Special-case handling of destructors in override lists when dumping ASTs.

2017-07-13 Thread Lang Hames via cfe-commits
> > If I change “OS << D->getName()” to “OS << D->getNameAsString()”, the > crash disappears. > > Can you take a look please? > > On Jun 20, 2017, at 2:30 PM, Lang Hames via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > Author: lhames

r307444 - Add testcase for r305850.

2017-07-07 Thread Lang Hames via cfe-commits
Author: lhames Date: Fri Jul 7 14:51:11 2017 New Revision: 307444 URL: http://llvm.org/viewvc/llvm-project?rev=307444=rev Log: Add testcase for r305850. Accidentally left this out of the original commit. Added: cfe/trunk/test/Import/import-overrides/

Re: r305850 - Preserve CXX method overrides in ASTImporter

2017-06-20 Thread Lang Hames via cfe-commits
Should be fixed in r305860. - Lang. On Tue, Jun 20, 2017 at 2:19 PM, Lang Hames <lha...@gmail.com> wrote: > Oops - this broke Sema/ms_class_layout.cpp. Looking in to it now... > > - Lang. > > On Tue, Jun 20, 2017 at 2:06 PM, Lang Hames via cfe-commits < > cfe-co

r305860 - Special-case handling of destructors in override lists when dumping ASTs.

2017-06-20 Thread Lang Hames via cfe-commits
Author: lhames Date: Tue Jun 20 16:30:43 2017 New Revision: 305860 URL: http://llvm.org/viewvc/llvm-project?rev=305860=rev Log: Special-case handling of destructors in override lists when dumping ASTs. Fixes a bug in r305850: CXXDestructors don't have names, so we need to handle printing of them

Re: r305850 - Preserve CXX method overrides in ASTImporter

2017-06-20 Thread Lang Hames via cfe-commits
Oops - this broke Sema/ms_class_layout.cpp. Looking in to it now... - Lang. On Tue, Jun 20, 2017 at 2:06 PM, Lang Hames via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: lhames > Date: Tue Jun 20 16:06:00 2017 > New Revision: 305850 > > URL: http://llvm.org/vi

r305850 - Preserve CXX method overrides in ASTImporter

2017-06-20 Thread Lang Hames via cfe-commits
Author: lhames Date: Tue Jun 20 16:06:00 2017 New Revision: 305850 URL: http://llvm.org/viewvc/llvm-project?rev=305850=rev Log: Preserve CXX method overrides in ASTImporter Summary: The ASTImporter should import CXX method overrides from the source context when it imports a method decl.

r305619 - Call setMustBuildLookupTable on TagDecls in ExternalASTMerger

2017-06-16 Thread Lang Hames via cfe-commits
Author: lhames Date: Fri Jun 16 19:12:38 2017 New Revision: 305619 URL: http://llvm.org/viewvc/llvm-project?rev=305619=rev Log: Call setMustBuildLookupTable on TagDecls in ExternalASTMerger Summary: setMustBuildLookupTable should be called on imported TagDecls otherwise we may fail to import

Re: [libcxx] r300140 - [libcxx] Fix __compressed_pair so it doesn't copy the argument multiple times, and add constexpr.

2017-04-24 Thread Lang Hames via cfe-commits
Hi Eric, Renaming __compressed_pair_elem's member from __first_ to __value_ has broken a lot of LLDB's data formatters. Would it be possible to rename it back for consistency? If it's just a rename it would be preferable to the alternative, which would be to add some clumsy fallback logic in

Re: [libcxx] r276092 - Unbreak is_constructible tests for Clang <= 3.7.

2016-07-20 Thread Lang Hames via cfe-commits
Hi Eric, I'm seeing failures on the builders that look like they're related to this - http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-expensive/359/ Could you look in to what's going on here? - Lang. On Tue, Jul 19, 2016 at 11:36 PM, Eric Fiselier via cfe-commits <