[clang][Interp] Only generate disassembly in debug builds
authorTimm Bäder <tbaeder@redhat.com>
Fri, 27 Jan 2023 08:14:31 +0000 (09:14 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 3 Feb 2023 14:40:25 +0000 (15:40 +0100)
commit60dcc70e48fa9814a4e0d5e12856bc88b7f927eb
tree8e0d7d6a513d8780987064cdf8e87cc1c10fb19e
parent0505c0b8cc998399979fcb970634dc8ee974dc7d
[clang][Interp] Only generate disassembly in debug builds

With the current set of opcodes, this saves 3460 lines in the generated
Opcodes.inc in release builds (-17%).

Differential Revision: https://reviews.llvm.org/D142694
clang/lib/AST/Interp/Disasm.cpp
clang/utils/TableGen/ClangOpcodesEmitter.cpp