diff options
author | Vassil Vassilev <v.g.vassilev@gmail.com> | 2024-11-19 14:48:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 14:48:21 +0100 |
commit | a8744066e9ef252b687c1206ccbd1a6e3ae1c890 (patch) | |
tree | c5536ee04abc9546100b808ccda4d5d7d1a6117d /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | ee4fb3a8761b0abe231a8fdc127cd668cd9478f7 (diff) | |
download | llvm-a8744066e9ef252b687c1206ccbd1a6e3ae1c890.zip llvm-a8744066e9ef252b687c1206ccbd1a6e3ae1c890.tar.gz llvm-a8744066e9ef252b687c1206ccbd1a6e3ae1c890.tar.bz2 |
[clang-repl] Include consistency using the default clang actions. (#116610)
This patch improves the code reuse of the actions system and adds
several improvements for easier debugging via clang-repl
--debug-only=clang-repl.
The change inimproves the consistency of the TUKind when actions are
handled within a WrapperFrontendAction. In this case instead of falling
back to default TU_Complete, we forward to the TUKind of the ASTContext
which presumably was created by the intended action. This enables the
incremental infrastructure to reuse code.
This patch also clones the first llvm::Module because the first PTU now
can come from -include A.h and the presumption of llvm::Module being
empty does not hold. The changes are a first step to fix the issues with
`clang-repl --cuda`.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions