[Lldb-commits] [PATCH] D143347: [lldb][DWARF] Infer no_unique_address attribute

Michael Buch via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 11 04:18:55 PDT 2023


Michael137 added subscribers: aprantl, dblaikie.
Michael137 added inline comments.


================
Comment at: lldb/test/API/lang/cpp/no_unique_address/main.cpp:38
+ long v = 42;
+} _f3;
+
----------------
I haven't checked the reworked logic yet, but it still crashes on this:

```
self.expect_expr("_f3")
```

I'm leaning towards not trying to support older compilers if it gets too complicated. Proposing a `DW_AT_no_unique_address` seems like the best option to me since that's pretty trivial to implement and requires almost no support on the LLDB side.

CC: @dblaikie @aprantl (since both were part of the [[ https://www.mail-archive.com/dwarf-discuss@lists.dwarfstd.org/msg00876.html | original discussion ]])


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143347



More information about the lldb-commits mailing list