[PATCH] D101194: [Driver] Push multiarch path setup to individual drivers

Petr Hosek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 23 12:48:48 PDT 2021


phosek created this revision.
phosek added a reviewer: MaskRay.
Herald added subscribers: jgravelle-google, sbc100, dschuff.
phosek requested review of this revision.
Herald added subscribers: cfe-commits, aheejin.
Herald added a project: clang.

Different platforms use different rules for multiarch triples so
it's difficult to provide a single method for all platforms. We
instead move the getMultiarchTriple to the ToolChain class and let
individual platforms override it and provide their custom logic.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101194

Files:
  clang/include/clang/Driver/ToolChain.h
  clang/lib/Driver/Driver.cpp
  clang/lib/Driver/ToolChain.cpp
  clang/lib/Driver/ToolChains/Fuchsia.cpp
  clang/lib/Driver/ToolChains/Fuchsia.h
  clang/lib/Driver/ToolChains/Gnu.h
  clang/lib/Driver/ToolChains/Linux.cpp
  clang/lib/Driver/ToolChains/WebAssembly.cpp
  clang/lib/Driver/ToolChains/WebAssembly.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101194.340142.patch
Type: text/x-patch
Size: 9892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210423/b176336d/attachment.bin>


More information about the cfe-commits mailing list