[PATCH] D143075: BareMetal ToolChain multilib layering

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 01:34:56 PDT 2023


phosek added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/BareMetal.cpp:228
+
+llvm::SmallVector<Multilib> BareMetal::getOrderedMultilibs() const {
+  // Get multilibs in reverse order because they're ordered most-specific last.
----------------
Can you use [llvm::reverse](https://github.com/llvm/llvm-project/blob/1d8820c342560a2fbf8e1970b861193ba8137177/llvm/include/llvm/ADT/STLExtras.h#L511) instead of allocating an entire new collection?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143075



More information about the cfe-commits mailing list