Lines Matching refs:FileName
803 std::string Filename(&Record[Idx], &Record[Idx] + FilenameLen);
805 MaybeAddSystemRootToFilename(Filename);
806 FileIDs[I] = LineTable.getLineTableFilenameID(Filename);
1008 resolveFileRelativeToOriginalDir(const std::string &Filename,
1014 SmallString<128> filePath(Filename);
1032 path::append(currPCHPath, path::filename(Filename));
1081 std::string Filename = OrigFilename;
1082 MaybeAddSystemRootToFilename(Filename);
1084 OverriddenBuffer? FileMgr.getVirtualFile(Filename, (off_t)Record[4],
1086 : FileMgr.getFile(Filename, /*OpenFile=*/false);
1089 std::string resolved = resolveFileRelativeToOriginalDir(Filename,
1096 File = FileMgr.getVirtualFile(Filename, (off_t)Record[4],
1100 ErrorStr += Filename;
1115 Error(diag::err_fe_pch_file_modified, Filename);
1157 Filename);
1388 return llvm::HashString(llvm::sys::path::filename(path));
1398 if (llvm::sys::path::filename(a) != llvm::sys::path::filename(b))
1598 std::string Filename = filenameStrRef;
1599 MaybeAddSystemRootToFilename(Filename);
1600 const FileEntry *File = FileMgr.getFile(Filename);
1603 std::string resolved = resolveFileRelativeToOriginalDir(Filename,
1613 /// \brief If we are loading a relocatable PCH file, and the filename is
1616 void ASTReader::MaybeAddSystemRootToFilename(std::string &Filename) {
1621 if (Filename.empty() || llvm::sys::path::is_absolute(Filename))
1626 Filename.insert(Filename.begin(), '/');
1632 Filename.insert(Filename.begin(), '/');
1634 Filename.insert(Filename.begin(), isysroot.begin(), isysroot.end());
2461 StringRef Filename(BlobStart, BlobLen);
2462 const FileEntry *File = getFileEntry(Filename);
2466 ErrorStr += Filename;
2493 Error(diag::err_fe_pch_file_modified, Filename);
2619 ASTReader::ASTReadResult ASTReader::ReadAST(const std::string &FileName,
2624 switch(ReadASTCore(FileName, Type, /*ImportedBy=*/0)) {
2696 ASTReader::ASTReadResult ASTReader::ReadASTCore(StringRef FileName,
2702 llvm::tie(M, NewModule) = ModuleMgr.addModule(FileName, Type, ImportedBy,
2707 std::string Msg = "Unable to load module \"" + FileName.str() + "\": "
2720 if (FileName != "-") {
2721 CurrentDir = llvm::sys::path::parent_path(FileName);
2735 Diag(diag::err_not_a_pch_file) << FileName;
3150 StringRef FileName(BlobStart, BlobLen);
3151 if (const FileEntry *Umbrella = PP.getFileManager().getFile(FileName)) {
3172 StringRef FileName(BlobStart, BlobLen);
3173 if (const FileEntry *File = PP.getFileManager().getFile(FileName)) {
5157 llvm::errs() << " " << I->first << " -> " << I->second->FileName