Lines Matching refs:UFE

271   FileEntry &UFE = UniqueRealFiles[Status.getUniqueID()];  in getFileRef()  local
275 NamedFileEnt->second = FileEntryRef::MapValue(UFE, DirInfo); in getFileRef()
281 .insert({Status.getName(), FileEntryRef::MapValue(UFE, DirInfo)}) in getFileRef()
285 assert(Redirection.second->V.get<FileEntry *>() == &UFE && in getFileRef()
297 if (UFE.isValid()) { // Already have an entry with this inode, return it. in getFileRef()
305 if (&DirInfo.getDirEntry() != UFE.Dir && Status.IsVFSMapped) in getFileRef()
306 UFE.Dir = &DirInfo.getDirEntry(); in getFileRef()
315 UFE.LastRef = ReturnedRef; in getFileRef()
321 UFE.LastRef = ReturnedRef; in getFileRef()
322 UFE.Size = Status.getSize(); in getFileRef()
323 UFE.ModTime = llvm::sys::toTimeT(Status.getLastModificationTime()); in getFileRef()
324 UFE.Dir = &DirInfo.getDirEntry(); in getFileRef()
325 UFE.UID = NextFileUID++; in getFileRef()
326 UFE.UniqueID = Status.getUniqueID(); in getFileRef()
327 UFE.IsNamedPipe = Status.getType() == llvm::sys::fs::file_type::fifo_file; in getFileRef()
328 UFE.File = std::move(F); in getFileRef()
329 UFE.IsValid = true; in getFileRef()
331 if (UFE.File) { in getFileRef()
332 if (auto PathName = UFE.File->getName()) in getFileRef()
333 fillRealPathName(&UFE, *PathName); in getFileRef()
336 fillRealPathName(&UFE, InterndFileName); in getFileRef()
364 FileEntry *UFE = nullptr; in getVirtualFileRef() local
378 UFE = &UniqueRealFiles[Status.getUniqueID()]; in getVirtualFileRef()
385 NamedFileEnt.second = FileEntryRef::MapValue(*UFE, *DirInfo); in getVirtualFileRef()
390 if (UFE->File) in getVirtualFileRef()
391 UFE->closeFile(); in getVirtualFileRef()
397 if (UFE->isValid()) in getVirtualFileRef()
400 UFE->UniqueID = Status.getUniqueID(); in getVirtualFileRef()
401 UFE->IsNamedPipe = Status.getType() == llvm::sys::fs::file_type::fifo_file; in getVirtualFileRef()
402 fillRealPathName(UFE, Status.getName()); in getVirtualFileRef()
405 UFE = VirtualFileEntries.back().get(); in getVirtualFileRef()
406 NamedFileEnt.second = FileEntryRef::MapValue(*UFE, *DirInfo); in getVirtualFileRef()
409 UFE->LastRef = FileEntryRef(NamedFileEnt); in getVirtualFileRef()
410 UFE->Size = Size; in getVirtualFileRef()
411 UFE->ModTime = ModificationTime; in getVirtualFileRef()
412 UFE->Dir = &DirInfo->getDirEntry(); in getVirtualFileRef()
413 UFE->UID = NextFileUID++; in getVirtualFileRef()
414 UFE->IsValid = true; in getVirtualFileRef()
415 UFE->File.reset(); in getVirtualFileRef()
475 void FileManager::fillRealPathName(FileEntry *UFE, llvm::StringRef FileName) { in fillRealPathName() argument
483 UFE->RealPathName = std::string(AbsPath.str()); in fillRealPathName()