Fix a bug that warnings generated with -M or -MM flags
authorYuka Takahashi <yukatkh@gmail.com>
Fri, 16 Jun 2017 16:01:13 +0000 (16:01 +0000)
committerYuka Takahashi <yukatkh@gmail.com>
Fri, 16 Jun 2017 16:01:13 +0000 (16:01 +0000)
commit2aee8d9aa73510087430ea6ee45810e3457e87bf
tree3a4e537c6fc4c0d0e808eaa35363ed60757132a0
parent6adac51dabb51771aade9b29f059f562b7f457c3
Fix a bug that warnings generated with -M or -MM flags

This is a patch for bug: https://bugs.llvm.org/show_bug.cgi?id=6817

Warnings should not be emitted with -M and -MM flags, because this mode
is only used for generate MakeFiles.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305561 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/m_and_mm.c