Home | History | Annotate | Download | only in Serialization

Lines Matching defs:Filename

993 /// \brief Adjusts the given filename to only write out the portion of the
994 /// filename that is not part of the system root directory.
996 /// \param Filename the file name to adjust.
999 /// the returned filename will be adjusted by this system root.
1001 /// \returns either the original filename (if it needs no adjustment) or the
1002 /// adjusted filename (which points into the @p Filename parameter).
1004 adjustFilenameForRelocatablePCH(const char *Filename, StringRef isysroot) {
1005 assert(Filename && "No file name to adjust?");
1008 return Filename;
1010 // Verify that the filename and the system root have the same prefix.
1012 for (; Filename[Pos] && Pos < isysroot.size(); ++Pos)
1013 if (Filename[Pos] != isysroot[Pos])
1014 return Filename; // Prefixes don't match.
1016 // We hit the end of the filename before we hit the end of the system root.
1017 if (!Filename[Pos])
1018 return Filename;
1023 if (Filename[Pos] == '/')
1026 return Filename + Pos;
1073 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // Filename
1099 const std::string &FileName = (*M)->FileName;
1100 Record.push_back(FileName.size());
1101 Record.append(FileName.begin(), FileName.end());
1369 const char *Filename = Entry.File->getName();
1370 SmallString<128> FilePath(Filename);
1379 Filename = FilePath.c_str();
1381 Filename = adjustFilenameForRelocatablePCH(Filename, isysroot);
1383 Stream.EmitRecordWithBlob(IFAbbrevCode, Record, Filename);
1481 const char *Filename;
1502 unsigned KeyLen = strlen(key.Filename) + 1 + 8 + 8;
1518 Out.write(key.Filename, KeyLen);
1599 const char *Filename = File->getName();
1600 Filename = adjustFilenameForRelocatablePCH(Filename, isysroot);
1604 if (Filename != File->getName()) {
1605 Filename = strdup(Filename);
1606 SavedStrings.push_back(Filename);
1609 HeaderFileInfoTrait::key_type key = { File, Filename };
1812 const char *Filename = LineTable.getFilename(I);
1813 Filename = adjustFilenameForRelocatablePCH(Filename, isysroot);
1814 unsigned FilenameLen = Filename? strlen(Filename) : 0;
1817 Record.insert(Record.end(), Filename, Filename + FilenameLen);
2137 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // filename length
4306 StringRef FileName = (*M)->FileName;
4307 LE.write<uint16_t>(FileName.size());
4308 Out.write(FileName.data(), FileName.size());