[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>
Sat, 3 Oct 2020 01:37:20 +0000 (18:37 -0700)
commite25bf2592060e7751f8b14522c97081ce2047175
tree6056c6faea3497fd00ea613138a740abfe946cbc
parent8ae4842669f1fee33d22cc3f0c895c7839d05aef
[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]