[PATCH] D42563: [lldb] attempt to fix DIERef::GetUID

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 26 11:56:53 PST 2018


clayborg added inline comments.


================
Comment at: source/Plugins/SymbolFile/DWARF/DIERef.cpp:67-68
+  lldb_private::ArchSpec arch;
+  if (dwarf->GetObjectFile()->GetArchitecture(arch) &&
+      arch.GetTriple().isOSBinFormatELF()) {
+    // For SymbolFileDWARFDwo/SymbolFileDWARFDwoDwp
----------------
Why do this arch check? check? Why not just get rely on dwarf->GetBaseCompileUnit()? Seem like we are doing more work than needed.


Repository:
  rL LLVM

https://reviews.llvm.org/D42563





More information about the llvm-commits mailing list