[Lldb-commits] [PATCH] D39387: Invert ArchSpec<->Platform dependency
Zachary Turner via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 27 15:48:19 PDT 2017
zturner added inline comments.
================
Comment at: source/Core/ArchSpec.cpp:890
+bool ArchSpec::ContainsOnlyArch(const llvm::Triple &triple) {
+ return triple.getOSName().empty() &&
+ triple.getVendorName().empty() &&
----------------
Should you also add `!triple.getArchName().empty()` to the condition? Also, perhaps name this parameter `normalized_triple` to document the expectation to the caller.
https://reviews.llvm.org/D39387
More information about the lldb-commits
mailing list