[Lldb-commits] [PATCH] D122684: [lldb] Use the selected and host platform to disambiguate between fat binary architectures

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 29 15:38:07 PDT 2022


aprantl added inline comments.


================
Comment at: lldb/include/lldb/Target/Platform.h:102
 
+  static lldb::PlatformSP
+  GetPlatformForArchitectures(std::vector<ArchSpec> archs,
----------------
Would you mind adding a doxygen comment for this? I'm asking because the semantics are not clear to me just from looking at the function signature.


================
Comment at: lldb/source/Target/Platform.cpp:1228
+  platforms.erase(std::unique(platforms.begin(), platforms.end()),
+                  platforms.end());
+}
----------------
would std::unique be more idiomatic?


================
Comment at: lldb/unittests/Platform/PlatformTest.cpp:1
+//===-- PlatformTest.cpp ------------------------------------===//
+//
----------------
super-nit: too few `-`s :-)


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

https://reviews.llvm.org/D122684



More information about the lldb-commits mailing list