[PATCH] D129519: [Symbolizer] Implement contextual symbolizer markup elements.
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 15 02:13:57 PDT 2022
phosek added inline comments.
================
Comment at: llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp:110
+
+ if (Element.Tag == "mmap") {
+ Optional<MMap> ParsedMMap = parseMMap(Element);
----------------
One potential improvement I've been thinking about would be to split the handling of different tags into separate methods. What I had in mind would be to have an `enum` for known tags, use `llvm:StringSwitch` to convert the tag to an enum and then use it for the dispatch. The only complication is `endModuleInfoLine` which needs a special handling. This could also be done in a future change.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129519/new/
https://reviews.llvm.org/D129519
More information about the llvm-commits
mailing list