diff options
author | Ben Langmuir <blangmuir@apple.com> | 2014-02-27 23:27:54 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2014-02-27 23:27:54 +0000 |
commit | 09e0d5c1bb206571b28c280632ca1476ae800570 (patch) | |
tree | 801b9afbefc0f609d45c0daf919d617d4f2c1a4d /clang/lib/Basic/FileManager.cpp | |
parent | d6f9b83ae1a196df4090a10e7b1e9ef5e01f61c6 (diff) | |
download | bcm5719-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/FileManager.cpp')
-rw-r--r-- | clang/lib/Basic/FileManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index f7e566b9779..5784f31843f 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp @@ -282,7 +282,7 @@ const FileEntry *FileManager::getFile(StringRef Filename, bool openFile, } // Otherwise, we don't have this file yet, add it. - UFE.Name = InterndFileName; + UFE.Name = Data.Name; UFE.Size = Data.Size; UFE.ModTime = Data.ModTime; UFE.Dir = DirInfo; |