Skip to content

Commit 468d668

Browse files
authored
[clang][Interp] Merge ByteCodeExprGen and ByteCodeStmtGen (#83683)
We currently cannot generate bytecode for statements once we've decided we want to generate bytecode for expressions. This is a problem for `StmtExpr`, which is an expression that requires us to evaluate a statement. Merge ByteCodeExprGen and ByteCodeStmtGen, so we don't do that distinction anymore. Rename them to Compiler at the same time.
1 parent 656b8f5 commit 468d668

File tree

8 files changed

+911
-1027
lines changed

8 files changed

+911
-1027
lines changed

clang/lib/AST/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ add_clang_library(clangAST
6565
FormatString.cpp
6666
InheritViz.cpp
6767
Interp/ByteCodeEmitter.cpp
68-
Interp/ByteCodeExprGen.cpp
69-
Interp/ByteCodeStmtGen.cpp
68+
Interp/Compiler.cpp
7069
Interp/Context.cpp
7170
Interp/Descriptor.cpp
7271
Interp/Disasm.cpp

0 commit comments

Comments
 (0)