Allow /showIncludes with /P
authorErich Keane <erich.keane@intel.com>
Fri, 20 Oct 2017 19:18:30 +0000 (19:18 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 20 Oct 2017 19:18:30 +0000 (19:18 +0000)
commit87baae2162ed7d67629d66bfb775a89bc5e6b738
treea62760f14a4c777b0de3f495b773c032f92808fc
parentf7596ece76570794f4fc89a65b49857b8c8570f1
Allow /showIncludes with /P

r213589 was checked in as a solution to
https://bugs.llvm.org/show_bug.cgi?id=20336.

However, it is possible to use /EP with /P
to suppress #line directives AND output to
a file. There is no reason in that case to
suppress /showIncludes.

This was reported here:
https://bugs.llvm.org/show_bug.cgi?id=34997

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

llvm-svn: 316225
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/cl-options.c