[Lldb-commits] [PATCH] D59562: [SymbolFileDWARF] Introduce DWARFContext
Paul Robinson via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 20 04:22:37 PDT 2019
probinson added a comment.
I remember LLVM's DWARFContext being irritating to deal with when I was doing the DWARF 5 stuff. The exact details have been swapped out of my memory, but I suspect it had something to do with needing to know whether I was in DWO mode or normal mode in order to snag the right section for some sort of cross-section lookup. This is because DWARFContext is the dumping ground for all the sections, regardless of what kind of file we're looking at, and it's up to the user of its interfaces to know what mode it's in.
I will admit that having one dumping ground is convenient in some ways, especially when we were looking at object files that contained a mix of both normal and .dwo sections, but IIRC we don't emit mixed-mode object files anymore.
Not objecting to this patch, but it was the most convenient place to raise this particular grump, and something to think about as you progress.
CHANGES SINCE LAST ACTION
More information about the lldb-commits