aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <Krzysztof.Parzyszek@amd.com>2024-11-13 07:15:18 -0600
committerGitHub <noreply@github.com>2024-11-13 07:15:18 -0600
commitdeb057adb7334734482452daf20ccdd8cece1aa8 (patch)
tree79a77e53a51c27ebe762ce0431f6afa2bf5fa1a2 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent97298853b4de70dbce9c0a140ac38e3ac179e02e (diff)
downloadllvm-deb057adb7334734482452daf20ccdd8cece1aa8.zip
llvm-deb057adb7334734482452daf20ccdd8cece1aa8.tar.gz
llvm-deb057adb7334734482452daf20ccdd8cece1aa8.tar.bz2
[flang] Enclose Walk overloads into class for lookup purposes (#115926)
The parse-tree-visitor consists of a range of `Walk` functions where each overload is specialized for a particular case. These overloads do call one another, and due to the usual name lookup rules, an earlier overload can't call an overload defined later unless the latter was declared ahead of time. To avoid listing a number of declarations at the beginning of the header enclose them in a class as static members, with a couple of simple forwarding calls. This takes advantage of the class member name lookup, which uses the entire class definition for lookup.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions