Lines Matching defs:file
5 // This file is distributed under the University of Illinois Open Source
72 return report("Error opening file: " + infoFile, Diag);
81 return report("Invalid file data: '" + lines[idx+1] + "' not a number",
155 return report("Could not create file: " + tempPath.str(), Diag);
182 return report(StringRef("Could not copy file '") + newFE->getName() +
183 "' to file '" + origFE->getName() + "'", Diag);
243 const FileEntry *file = getOriginalFile(filePath);
245 remap(file, newfile);
248 void FileRemapper::remap(const FileEntry *file, llvm::MemoryBuffer *memBuf) {
249 assert(file);
250 Target &targ = FromToMappings[file];
255 void FileRemapper::remap(const FileEntry *file, const FileEntry *newfile) {
256 assert(file && newfile);
257 Target &targ = FromToMappings[file];
260 ToFromMappings[newfile] = file;
264 const FileEntry *file = FileMgr->getFile(filePath);
265 // If we are updating a file that overriden an original file,
266 // actually update the original file.
268 I = ToFromMappings.find(file);
270 file = I->second;
271 assert(FromToMappings.find(file) != FromToMappings.end() &&
272 "Original file not in mappings!");
274 return file;