summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/DependencyFile.cpp
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
commitdaae9528b752363b158adf4708ab586bb3418894 (patch)
treecca54cf30289638e1190414a0bbff6253a48c345 /clang/lib/Frontend/DependencyFile.cpp
parent90161dad75f4a47cd4af6891f1664bb04a1c52ec (diff)
downloadbcm5719-llvm-daae9528b752363b158adf4708ab586bb3418894.tar.gz
bcm5719-llvm-daae9528b752363b158adf4708ab586bb3418894.zip
Revert r316193.
This patch breaks users using -fno-canonical-prefixes, for whom resolving symlinks is not acceptable. llvm-svn: 316195
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r--clang/lib/Frontend/DependencyFile.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp
index b6e4cfa3385..561eb9c4a31 100644
--- a/clang/lib/Frontend/DependencyFile.cpp
+++ b/clang/lib/Frontend/DependencyFile.cpp
@@ -161,7 +161,6 @@ class DFGImpl : public PPCallbacks {
bool AddMissingHeaderDeps;
bool SeenMissingHeader;
bool IncludeModuleFiles;
- bool CanonicalSystemHeaders;
DependencyOutputFormat OutputFormat;
private:
@@ -177,7 +176,6 @@ public:
AddMissingHeaderDeps(Opts.AddMissingHeaderDeps),
SeenMissingHeader(false),
IncludeModuleFiles(Opts.IncludeModuleFiles),
- CanonicalSystemHeaders(Opts.CanonicalSystemHeaders),
OutputFormat(Opts.OutputFormat) {
for (const auto &ExtraDep : Opts.ExtraDeps) {
AddFilename(ExtraDep);
@@ -290,15 +288,6 @@ void DFGImpl::FileChanged(SourceLocation Loc,
if (!FileMatchesDepCriteria(Filename.data(), FileType))
return;
- // Try to shorten system header paths like GCC does (unless
- // -fno-canonical-system-headers is given).
- if (CanonicalSystemHeaders && isSystem(FileType)) {
- StringRef RealPath = FE->tryGetRealPathName();
- if (!RealPath.empty() && RealPath.size() < Filename.size()) {
- Filename = RealPath;
- }
- }
-
AddFilename(llvm::sys::path::remove_leading_dotslash(Filename));
}
OpenPOWER on IntegriCloud