[Lldb-commits] [PATCH] D89812: [lldb][PDB] Add ObjectFile PDB plugin
Adrian McCarthy via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 23 17:34:04 PDT 2020
amccarth added a comment.
This looks pretty good, both the patch and Pavel's insights. I don't see much to comment on that Pavel didn't already catch.
================
Comment at: lldb/source/Plugins/ObjectFile/PDB/ObjectFilePDB.cpp:168
+
+ ArchSpec &spec = module_spec.GetArchitecture();
+ switch (dbi_stream->getMachineType()) {
----------------
For me, the name `spec` is confusing, because this code is mostly dealing with ModuleSpecs but `spec` is a reference to the ArchSpec of the module_spec. Perhaps `module_arch` would make this clearer. Then the code below would follow a pattern like:
module_arch.SetTriple("blah");
specs.Append(module_spec);
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89812/new/
https://reviews.llvm.org/D89812
More information about the lldb-commits
mailing list