Lines Matching full:dirname
241 StringRef DirName = llvm::sys::path::parent_path(Filename);
243 if (DirName.empty())
244 DirName = ".";
246 return FileMgr.getDirectory(DirName, CacheFailure);
252 StringRef DirName = llvm::sys::path::parent_path(Path);
253 if (DirName.empty())
257 SeenDirEntries.GetOrCreateValue(DirName);
260 // at the same time. Therefore, if DirName is already in the cache,
273 addAncestorsAsVirtualDirs(DirName);
276 const DirectoryEntry *FileManager::getDirectory(StringRef DirName,
281 if (DirName.size() > 1 &&
282 DirName != llvm::sys::path::root_path(DirName) &&
283 llvm::sys::path::is_separator(DirName.back()))
284 DirName = DirName.substr(0, DirName.size()-1);
288 SeenDirEntries.GetOrCreateValue(DirName);
310 SeenDirEntries.erase(DirName);