diff options
| author | Hans Wennborg <hans@hanshq.net> | 2013-08-09 00:32:23 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2013-08-09 00:32:23 +0000 |
| commit | 0fd6207d3779b57566b7eb2a28e335d681549a33 (patch) | |
| tree | a6732f1201adcabcf8c22a7776070fa35ce4a819 /clang/lib/Driver | |
| parent | 91555bde88dd991b60f4bf467dae74c6ce4f7bfd (diff) | |
| download | bcm5719-llvm-0fd6207d3779b57566b7eb2a28e335d681549a33.tar.gz bcm5719-llvm-0fd6207d3779b57566b7eb2a28e335d681549a33.zip | |
clang-cl: Support /showIncludes
This option prints information about #included files to stderr. Clang could
already do it, this patch just teaches the existing code about the /showIncludes
style and adds the flag.
Differential Revision: http://llvm-reviews.chandlerc.com/D1333
llvm-svn: 188037
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 7724a1e6814..1d41b94b7f1 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -3727,6 +3727,9 @@ void Clang::AddClangCLArgs(const ArgList &Args, ArgStringList &CmdArgs) const { // FIXME: Make this default for the win32 triple. CmdArgs.push_back("-cxx-abi"); CmdArgs.push_back("microsoft"); + + if (Arg *A = Args.getLastArg(options::OPT_show_includes)) + A->render(Args, CmdArgs); } void ClangAs::ConstructJob(Compilation &C, const JobAction &JA, |

