[Driver] Move detectLibcxxIncludePath to ToolChain
authorPetr Hosek <phosek@google.com>
Tue, 22 Sep 2020 08:01:16 +0000 (01:01 -0700)
committerPetr Hosek <phosek@google.com>
Wed, 31 Mar 2021 17:50:44 +0000 (10:50 -0700)
commitfcf6800506862586e2d409aaa03a1cff818edfcc
treea4a5196bea29a0a2c65aaf81c1497f74fae03887
parent45783d0e8a3632b7c1f5b0cdd258bfba1f8583e7
[Driver] Move detectLibcxxIncludePath to ToolChain

This helper method is useful even outside of Gnu toolchains, so move
it to ToolChain so it can be reused in other toolchains such as Fuchsia.

Differential Revision: https://reviews.llvm.org/D88452
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/lib/Driver/ToolChains/Gnu.cpp
clang/test/Driver/Inputs/basic_fuchsia_tree/include/c++/v1/.keep [new file with mode: 0644]