Lines Matching refs:FileEntry

57 #define NON_EXISTENT_FILE reinterpret_cast<FileEntry*>((intptr_t)-1)
60 FileEntry::~FileEntry() {
61 // If this FileEntry owns an open file descriptor that never got used, close
66 bool FileEntry::isNamedPipe() const {
109 llvm::StringMap<FileEntry, llvm::BumpPtrAllocator> UniqueFiles;
112 /// getFile - Return an existing FileEntry with the given name if
114 /// default-constructed FileEntry.
115 FileEntry &getFile(const char *Name, const struct stat & /*StatBuf*/) {
125 void erase(const FileEntry *Entry) {
158 std::set<FileEntry> UniqueFiles;
161 /// getFile - Return an existing FileEntry with the given ID's if
163 /// default-constructed FileEntry.
164 FileEntry &getFile(const char * /*Name*/, const struct stat &StatBuf) {
166 const_cast<FileEntry&>(
167 *UniqueFiles.insert(FileEntry(StatBuf.st_dev,
174 void erase(const FileEntry *Entry) { UniqueFiles.erase(*Entry); }
340 const FileEntry *FileManager::getFile(StringRef Filename, bool openFile,
345 llvm::StringMapEntry<FileEntry *> &NamedFileEnt =
398 FileEntry &UFE = UniqueRealFiles.getFile(InterndFileName, StatBuf);
421 const FileEntry *
427 llvm::StringMapEntry<FileEntry *> &NamedFileEnt =
440 FileEntry *UFE = 0;
474 UFE = new FileEntry();
501 getBufferForFile(const FileEntry *Entry, std::string *ErrorStr,
588 void FileManager::invalidateCache(const FileEntry *Entry) {
589 assert(Entry && "Cannot invalidate a NULL FileEntry");
593 // FileEntry invalidation should not block future optimizations in the file
601 SmallVectorImpl<const FileEntry *> &UIDToFiles) const {
606 for (llvm::StringMap<FileEntry*, llvm::BumpPtrAllocator>::const_iterator
613 for (SmallVector<FileEntry*, 4>::const_iterator
620 void FileManager::modifyFileEntry(FileEntry *File,