aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authornerix <nerixdev@outlook.de>2025-07-04 10:40:33 +0200
committerGitHub <noreply@github.com>2025-07-04 10:40:33 +0200
commit2fcf1f8279b846930203fa05f71c6ade293709b1 (patch)
treef8ae0d403579564400ce854e32c7b77e3ab2b11a /flang/lib/Frontend/CompilerInvocation.cpp
parentd74c9ef8370c9310452859ff876a2a5d8b8f7ad5 (diff)
downloadllvm-2fcf1f8279b846930203fa05f71c6ade293709b1.zip
llvm-2fcf1f8279b846930203fa05f71c6ade293709b1.tar.gz
llvm-2fcf1f8279b846930203fa05f71c6ade293709b1.tar.bz2
[MsDemangle] Use LLVM style RTTI for AST nodes (#143410)
The inheritance hierarchy for `llvm::ms_demangle::Node` ([doxygen](https://llvm.org/doxygen/structllvm_1_1ms__demangle_1_1Node.html)) is a bit more involved. One thing that's missing without RTTI is the ability to determine if a node is a symbol, identifier, or type (or one would need to check for every kind). This PR adds support for `dyn_cast`, `isa`, and friends to `llvm::ms_demangle::Node`. As the type already has a `kind()`, this mainly adds `classof` to the nodes as well as some start and end markers in the `NodeKind` enum.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions