[Lldb-commits] [PATCH] D113155: [lldb] Remove nested switches from ARMGetSupportedArchitectureAtIndex (NFC)
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 3 23:35:35 PDT 2021
labath added inline comments.
================
Comment at: lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp:558
+struct CompatibleArchs {
+ const char **archs = nullptr;
----------------
Is this any different from an `ArrayRef<const char *>`?
================
Comment at: lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp:564-565
+
+#define COMPATIBLE_ARCHS(archs) \
+ { archs, (sizeof(archs) / sizeof(const char *)) }
+
----------------
This wouldn't be needed with arrayref, as it has an appropriate C array constructor
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113155/new/
https://reviews.llvm.org/D113155
More information about the lldb-commits
mailing list