aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc
diff options
context:
space:
mode:
authorChris Lattner <clattner@nondot.org>2021-10-10 21:21:27 -0700
committerChris Lattner <clattner@nondot.org>2021-10-11 13:09:57 -0700
commite0582e69f517c5d4a47f52130ae4bd066c3d8edd (patch)
tree0dd967a780ff334e49f464366c78c9dab59701ca /llvm/lib/ExecutionEngine/Orc
parent1760d8b36b4804758a9a4801edc1d97c0ba4f25c (diff)
downloadllvm-e0582e69f517c5d4a47f52130ae4bd066c3d8edd.zip
llvm-e0582e69f517c5d4a47f52130ae4bd066c3d8edd.tar.gz
llvm-e0582e69f517c5d4a47f52130ae4bd066c3d8edd.tar.bz2
[TypeSwitch/Compiler.h] Provide a LLVM_NODEBUG macro and use it in TypeSwitch.h
TypeSwitch.h is used pervasively in MLIR and often has dozens of types switched over. It uses "zero cost" variadic templates to implement the dispatching mechanism... which isn't zero cost in debug builds, and which causes a massive problem for actually debugging things that use it - you get dozens of nonsense frames in the debugger for simple things like a visitor. Fix this by marking the key method in TypeSwitch as nodebug + alwaysinline. This resolves LLVM PR49301 Differential Revision: https://reviews.llvm.org/D111520
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc')
0 files changed, 0 insertions, 0 deletions