Home | History | Annotate | Download | only in Serialization

Lines Matching refs:FileName

922 /// \brief Adjusts the given filename to only write out the portion of the
923 /// filename that is not part of the system root directory.
925 /// \param Filename the file name to adjust.
928 /// the returned filename will be adjusted by this system root.
930 /// \returns either the original filename (if it needs no adjustment) or the
931 /// adjusted filename (which points into the @p Filename parameter).
933 adjustFilenameForRelocatablePCH(const char *Filename, StringRef isysroot) {
934 assert(Filename && "No file name to adjust?");
937 return Filename;
939 // Verify that the filename and the system root have the same prefix.
941 for (; Filename[Pos] && Pos < isysroot.size(); ++Pos)
942 if (Filename[Pos] != isysroot[Pos])
943 return Filename; // Prefixes don't match.
945 // We hit the end of the filename before we hit the end of the system root.
946 if (!Filename[Pos])
947 return Filename;
952 if (Filename[Pos] == '/')
955 return Filename + Pos;
999 const std::string &FileName = (*M)->FileName;
1000 Record.push_back(FileName.size());
1001 Record.append(FileName.begin(), FileName.end());
1126 StringRef Filename = Stat->first();
1127 Generator.insert(Filename.data(), Stat->second);
1238 // The hash is based only on the filename portion of the key, so that the
1242 return llvm::HashString(llvm::sys::path::filename(path));
1328 const char *Filename = File->getName();
1329 Filename = adjustFilenameForRelocatablePCH(Filename, isysroot);
1333 if (Filename != File->getName()) {
1334 Filename = strdup(Filename);
1335 SavedStrings.push_back(Filename);
1338 Generator.insert(Filename, HFI, GeneratorTrait);
1450 const char *Filename = Content->OrigEntry->getName();
1451 llvm::SmallString<128> FilePath(Filename);
1460 Filename = FilePath.c_str();
1462 Filename = adjustFilenameForRelocatablePCH(Filename, isysroot);
1463 Stream.EmitRecordWithBlob(SLocFileAbbrv, Record, Filename);
1550 const char *Filename = LineTable.getFilename(I);
1551 Filename = adjustFilenameForRelocatablePCH(Filename, isysroot);
1552 unsigned FilenameLen = Filename? strlen(Filename) : 0;
1555 Record.insert(Record.end(), Filename, Filename + FilenameLen);
1743 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // filename length
2924 StringRef FileName = (*M)->FileName;
2925 io::Emit16(Out, FileName.size());
2926 Out.write(FileName.data(), FileName.size());