Home | History | Annotate | Download | only in ARCMigrate

Lines Matching defs:file

1 //===--- FileRemapper.cpp - File Remapping Helper -------------------------===//
5 // This file is distributed under the University of Illinois Open Source
69 return report("Error opening file: " + infoFile, Diag);
78 return report("Invalid file data: '" + lines[idx+1] + "' not a number",
86 return report("File does not exist: " + fromFilename, Diag);
92 return report("File does not exist: " + toFilename, Diag);
98 return report("File was modified: " + fromFilename, Diag);
149 return report("Could not create file: " + tempPath.str(), Diag);
175 return report(StringRef("File does not exist: ") + origFE->getName(),
211 void FileRemapper::remap(const FileEntry *file,
213 assert(file);
214 Target &targ = FromToMappings[file];
219 void FileRemapper::remap(const FileEntry *file, const FileEntry *newfile) {
220 assert(file && newfile);
221 Target &targ = FromToMappings[file];
224 ToFromMappings[newfile] = file;
228 const FileEntry *file = FileMgr->getFile(filePath);
229 // If we are updating a file that overriden an original file,
230 // actually update the original file.
232 I = ToFromMappings.find(file);
234 file = I->second;
235 assert(FromToMappings.find(file) != FromToMappings.end() &&
236 "Original file not in mappings!");
238 return file;