-
- Downloads
[clang-repl] [codegen] Reduce the state in TBAA. NFC for static compilation. (#98138)
In incremental compilation clang works with multiple `llvm::Module`s. Our current approach is to create a CodeGenModule entity for every new module request (via StartModule). However, some of the state such as the mangle context needs to be preserved to keep the original semantics in the ever-growing TU. Fixes: llvm/llvm-project#95581. cc: @jeaye (cherry picked from commit 6c62ad446b2441b78ae524d9e700e351d5a76394)
Showing
- clang/lib/CodeGen/CGCall.cpp 15 additions, 16 deletionsclang/lib/CodeGen/CGCall.cpp
- clang/lib/CodeGen/CGClass.cpp 1 addition, 1 deletionclang/lib/CodeGen/CGClass.cpp
- clang/lib/CodeGen/CodeGenModule.cpp 9 additions, 6 deletionsclang/lib/CodeGen/CodeGenModule.cpp
- clang/lib/CodeGen/CodeGenModule.h 3 additions, 2 deletionsclang/lib/CodeGen/CodeGenModule.h
- clang/lib/CodeGen/CodeGenTBAA.cpp 8 additions, 5 deletionsclang/lib/CodeGen/CodeGenTBAA.cpp
- clang/lib/CodeGen/CodeGenTBAA.h 1 addition, 4 deletionsclang/lib/CodeGen/CodeGenTBAA.h
- clang/lib/CodeGen/CodeGenTypes.cpp 4 additions, 3 deletionsclang/lib/CodeGen/CodeGenTypes.cpp
- clang/lib/CodeGen/CodeGenTypes.h 1 addition, 7 deletionsclang/lib/CodeGen/CodeGenTypes.h
- clang/lib/CodeGen/MicrosoftCXXABI.cpp 1 addition, 1 deletionclang/lib/CodeGen/MicrosoftCXXABI.cpp
- clang/test/Interpreter/assigment-with-implicit-ctor.cpp 13 additions, 0 deletionsclang/test/Interpreter/assigment-with-implicit-ctor.cpp
Loading
Please register or sign in to comment