[Lldb-commits] [PATCH] D115308: [LLDB] Uniquify Type in type list.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 13 08:59:56 PST 2021


labath added a comment.

I don't know whether the types should be uniqued at this level (obviously, they should be uniqued somewhere), but these are the thoughts that spring to mind:

- if this is a problem for lldb-test, then it would be preferable to come up with a solution that does not negatively impact the performance and memory consumption of the production code
- it seems like this patch essentially implements its own copy of llvm::SetVector
- It's unfortunate to have set-like semanticts in TypeList, when we already have a type called TypeSet.



================
Comment at: lldb/test/Shell/SymbolFile/DWARF/x86/dump-types.cpp:3-13
+// RUN: %clang %s -g -c -o %t.o --target=x86_64-pc-linux -gno-pubnames
+// RUN: ld.lld %t.o -o %t
+// RUN: lldb-test symbols --find=none %t | FileCheck %s
+
+// RUN: %clang %s -g -c -o %t --target=x86_64-apple-macosx
+// RUN: lldb-test symbols --find=none %t | FileCheck %s
+
----------------
It doesn't seem necessary to run all three accelerator flavours for this kind of a test.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115308/new/

https://reviews.llvm.org/D115308



More information about the lldb-commits mailing list