summaryrefslogtreecommitdiffstats
path: root/lib/Tooling
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-10-20 00:25:07 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-10-20 00:25:07 +0000
commit53df1a5045c5c9471b0b4b00f8d64433d862699d (patch)
treec3d2d321fd0422f5a58e6dd1a390d17e039ae75c /lib/Tooling
parentcc28d36809ee131966e1bd25939748d9f7cc07a4 (diff)
Revert r316193.
This patch breaks users using -fno-canonical-prefixes, for whom resolving symlinks is not acceptable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling')
-rw-r--r--lib/Tooling/ArgumentsAdjusters.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Tooling/ArgumentsAdjusters.cpp b/lib/Tooling/ArgumentsAdjusters.cpp
index 8fcaa8afe4..ac9fd3c5ca 100644
--- a/lib/Tooling/ArgumentsAdjusters.cpp
+++ b/lib/Tooling/ArgumentsAdjusters.cpp
@@ -58,9 +58,7 @@ ArgumentsAdjuster getClangStripDependencyFileAdjuster() {
StringRef Arg = Args[i];
// All dependency-file options begin with -M. These include -MM,
// -MF, -MG, -MP, -MT, -MQ, -MD, and -MMD.
- // The exception is -f[no-]canonical-system-headers.
- if (!Arg.startswith("-M") && Arg != "-fno-canonical-system-headers" &&
- Arg != "-fcanonical-system-headers")
+ if (!Arg.startswith("-M"))
AdjustedArgs.push_back(Args[i]);
if ((Arg == "-MF") || (Arg == "-MT") || (Arg == "-MQ") ||