From 09e0d5c1bb206571b28c280632ca1476ae800570 Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Thu, 27 Feb 2014 23:27:54 +0000 Subject: 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 --- clang/lib/Basic/FileSystemStatCache.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Basic/FileSystemStatCache.cpp') 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(); -- cgit v1.2.3