diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-09 19:11:36 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-13 15:31:58 -0700 |
commit | 5a3130e3b645cf5fc179d9274eb1b62b7f0c7438 (patch) | |
tree | 1d91b2e5cee8cc1f83747b6f100ddbe7b24594dc /clang/lib/Basic/FileManager.cpp | |
parent | f5592f3069842d53f30b40f6e3cb8cdee560828f (diff) | |
download | llvm-5a3130e3b645cf5fc179d9274eb1b62b7f0c7438.zip llvm-5a3130e3b645cf5fc179d9274eb1b62b7f0c7438.tar.gz llvm-5a3130e3b645cf5fc179d9274eb1b62b7f0c7438.tar.bz2 |
[clang] NFCI: Use `FileEntryRef` in `FileManager::getCanonicalName()`
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r-- | clang/lib/Basic/FileManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index 30e2916..c80fbfd 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp @@ -636,8 +636,8 @@ StringRef FileManager::getCanonicalName(DirectoryEntryRef Dir) { return getCanonicalName(Dir, Dir.getName()); } -StringRef FileManager::getCanonicalName(const FileEntry *File) { - return getCanonicalName(File, File->getName()); +StringRef FileManager::getCanonicalName(FileEntryRef File) { + return getCanonicalName(File, File.getName()); } StringRef FileManager::getCanonicalName(const void *Entry, StringRef Name) { |