summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/FileSystemStatCache.cpp
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2014-02-27 23:27:54 +0000
committerBen Langmuir <blangmuir@apple.com>2014-02-27 23:27:54 +0000
commit09e0d5c1bb206571b28c280632ca1476ae800570 (patch)
tree801b9afbefc0f609d45c0daf919d617d4f2c1a4d /clang/lib/Basic/FileSystemStatCache.cpp
parentd6f9b83ae1a196df4090a10e7b1e9ef5e01f61c6 (diff)
downloadbcm5719-llvm-09e0d5c1bb206571b28c280632ca1476ae800570.tar.gz
bcm5719-llvm-09e0d5c1bb206571b28c280632ca1476ae800570.zip
Honour 'use-external-names' in FileManager
Pass through the externally-visible names that we got from the VFS down to FileManager, and test that this is the name showing up in __FILE__, diagnostics, and debug information. llvm-svn: 202442
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
-rw-r--r--clang/lib/Basic/FileSystemStatCache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Basic/FileSystemStatCache.cpp b/clang/lib/Basic/FileSystemStatCache.cpp
index b225facbad9..e50dc1b5ed0 100644
--- a/clang/lib/Basic/FileSystemStatCache.cpp
+++ b/clang/lib/Basic/FileSystemStatCache.cpp
@@ -32,6 +32,7 @@ void FileSystemStatCache::anchor() { }
static void copyStatusToFileData(const vfs::Status &Status,
FileData &Data) {
+ Data.Name = Status.getName();
Data.Size = Status.getSize();
Data.ModTime = Status.getLastModificationTime().toEpochTime();
Data.UniqueID = Status.getUniqueID();
OpenPOWER on IntegriCloud