aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2022-01-20 15:07:39 +0100
committerJan Svoboda <jan_svoboda@apple.com>2022-01-20 15:48:02 +0100
commit9011903e3613af360c3a1d05c106e464538efd08 (patch)
tree432d66716dfbde0e55ca4af334bfd95ce484631a /clang/lib/CodeGen/CodeGenFunction.cpp
parent9e24d14ac89f44bb6c9141561ca849ccdd09e6a8 (diff)
downloadllvm-9011903e3613af360c3a1d05c106e464538efd08.zip
llvm-9011903e3613af360c3a1d05c106e464538efd08.tar.gz
llvm-9011903e3613af360c3a1d05c106e464538efd08.tar.bz2
[llvm][vfs] Abstract in-memory node creation
The creation of in-memory VFS nodes happens in a single function that deduces what kind of node to create from the arguments. This leads to complicated if-then-else logic that's difficult to cleanly extend. This patch abstracts away in-memory node creation via a type-erased factory function that's passed instead. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D117648
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions