labath added inline comments.
================ Comment at: lldb/source/Target/Platform.cpp:1891 + +PlatformSP PlatformList::GetOrCreate(const ArchSpec &arch, + ArchSpec *platform_arch_ptr, ---------------- JDevlieghere wrote: > [Nit/pedantic] We have a few calls to `IsCompatibleArchitecture` in this > function. Based on the existing comments you can infer that that's what the > second argument is for. Normally I'd suggest an inline comment, but given the > that there's a bunch of calls, could we have either have two constants: > > ``` > enum ArchMatch : bool { > ExactArchMatch = true, > CompatibleArchMatch = false, > }; > ``` > > Or maybe even better, can we change the signature of that function to take an > enum with those values? I've created a separate patch for that (https://reviews.llvm.org/D121290) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D120810/new/ https://reviews.llvm.org/D120810 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits