[Driver] Search the toolchain dir with -print-file-name
authorPetr Hosek <phosek@chromium.org>
Wed, 29 May 2019 00:01:05 +0000 (00:01 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 29 May 2019 00:01:05 +0000 (00:01 +0000)
commit92d706eaca6cc79501066eae4392b600008e52c1
tree850e878aa4d7d9962db023ede5098c7258a66b0c
parent26212da5553a20a4a1dd4126514cb5697230fa53
[Driver] Search the toolchain dir with -print-file-name

This is useful when looking for directories or files relative to the
toolchain root, e.g. include/c++/v1. This change also adds a test
to make sure this functionality doesn't regress in the future.

Differential Revision: https://reviews.llvm.org/D62558

llvm-svn: 361903
clang/lib/Driver/Driver.cpp
clang/test/Driver/print-file-name.c [new file with mode: 0644]