Raphael Isemann
77440d644b
[lldb][NFC] Allow range-based for loops over DWARFDIE's children
...
This patch adds the ability to get a DWARFDIE's children as an LLVM range.
This way we can use for range loops to iterate over them and we can use LLVM's
algorithms like `llvm::all_of` to query all children.
The implementation has to do some small shenanigans as the iterator needs to
store a DWARFDIE, but a DWARFDIE container is also a DWARFDIE so it can't return
the iterator by value. I just made the `children` getter a templated function to
avoid the cyclic dependency.
Reviewed By: #lldb, werat, JDevlieghere
Differential Revision: https://reviews.llvm.org/D103172
2021-07-22 15:03:30 +02:00
..
2020-08-10 19:22:52 -07:00
2020-04-22 17:11:50 +02:00
2020-02-17 14:10:36 +01:00
2020-04-22 17:11:50 +02:00
2020-04-22 17:11:50 +02:00
2020-01-24 08:52:55 +01:00
2020-02-17 23:15:40 -08:00
2021-06-09 09:43:13 -07:00
2021-06-09 09:43:13 -07:00
2021-07-02 11:31:16 -07:00
2021-07-22 15:03:30 +02:00
2021-07-22 13:36:23 +02:00
2021-07-02 11:31:16 -07:00
2021-03-09 10:23:05 +01:00
2020-06-09 13:41:41 +02:00
2021-07-02 11:31:16 -07:00
2020-10-19 12:44:33 +02:00
2020-10-19 12:44:33 +02:00
2020-02-21 16:01:17 +01:00
2020-02-21 16:01:17 +01:00
2020-02-09 17:45:32 -08:00
2020-02-17 23:15:40 -08:00
2020-01-24 08:52:55 +01:00
2021-06-09 09:43:13 -07:00
2021-03-29 15:34:36 -07:00
2021-03-29 15:34:36 -07:00
2021-03-29 15:34:36 -07:00
2021-03-29 15:34:36 -07:00
2021-03-29 15:34:36 -07:00
2021-03-29 15:34:36 -07:00
2021-05-26 12:46:12 +02:00
2021-06-09 09:43:13 -07:00
2020-01-24 08:52:55 +01:00
2020-02-17 23:15:40 -08:00
2020-01-24 08:52:55 +01:00
2020-02-17 23:15:40 -08:00
2020-01-24 08:52:55 +01:00
2021-07-02 11:31:16 -07:00
2020-05-25 16:09:25 +02:00
2021-05-26 12:46:12 +02:00
2021-07-22 15:03:30 +02:00
2021-07-22 15:03:30 +02:00
2021-05-26 12:46:12 +02:00
2021-06-09 09:43:13 -07:00
2020-04-22 17:11:50 +02:00
2020-04-22 17:11:50 +02:00
2020-01-24 08:52:55 +01:00
2020-02-17 23:15:40 -08:00
2021-07-21 10:45:37 +02:00
2021-07-21 10:45:37 +02:00
2021-06-09 09:43:13 -07:00
2021-06-09 09:43:13 -07:00
2020-01-24 08:52:55 +01:00
2020-02-17 23:15:40 -08:00
2021-03-24 12:58:13 -07:00
2020-04-22 17:11:50 +02:00
2020-04-15 23:40:54 +02:00
2021-07-02 11:31:16 -07:00
2021-07-22 15:03:30 +02:00
2021-06-16 18:21:43 -07:00
2021-07-02 11:31:16 -07:00
2021-07-02 11:31:16 -07:00
2021-01-05 16:40:37 -08:00
2020-04-22 17:11:50 +02:00
2020-01-20 13:05:00 +01:00
2021-05-04 16:34:44 +00:00
2021-07-02 11:31:16 -07:00