Lines Matching +defs:source +defs:path

110   void addDebug(TpiSource *source);
112 void addDebugSymbols(TpiSource *source);
151 TpiSource *source);
152 void addCommonLinkerModuleSymbols(StringRef path,
243 // https://docs.microsoft.com/en-us/visualstudio/debugger/debug-source-files-common-properties-solution-property-pages-dialog-box
252 if (sys::path::is_absolute(fileName, sys::path::Style::windows) ||
253 sys::path::is_absolute(fileName, sys::path::Style::posix))
256 // It's not absolute in any path syntax. Relative paths necessarily refer to
258 // nonsensical path.
260 sys::path::native(fileName);
262 sys::path::remove_dots(fileName, true);
266 // Try to guess whether /PDBSOURCEPATH is a unix path or a windows path.
268 // decide that it's a unix path if we're fairly certain. Specifically, if
271 sys::path::Style guessedStyle = absoluteFileName.starts_with("/")
272 ? sys::path::Style::posix
273 : sys::path::Style::windows;
274 sys::path::append(absoluteFileName, guessedStyle, fileName);
275 sys::path::native(absoluteFileName, guessedStyle);
276 sys::path::remove_dots(absoluteFileName, true, guessedStyle);
300 for (TpiSource *source : ctx.tpiSourceList) {
301 builder.getTpiBuilder().addTypeRecords(source->mergedTpi.recs,
302 source->mergedTpi.recSizes,
303 source->mergedTpi.recHashes);
304 builder.getIpiBuilder().addTypeRecords(source->mergedIpi.recs,
305 source->mergedIpi.recSizes,
306 source->mergedIpi.recHashes);
342 TpiSource *source) {
390 source->file->getName(), ti->getIndex()));
570 TpiSource *source = debugChunk->file->debugTypesObj;
571 if (!source->remapTypesInSymbolRecord(recordBytes)) {
578 translateIdSymbols(recordBytes, source);
866 // there is no type source info.
869 TpiSource *source = debugChunk->file->debugTypesObj;
876 if (!source->remapTypeIndex(inlinee, TiRefKind::IndexRef)) {
1025 void PDBLinker::addDebugSymbols(TpiSource *source) {
1028 if (!source->file)
1035 DebugSHandler dsh(*this, *source->file);
1037 for (SectionChunk *debugChunk : source->file->getDebugChunks()) {
1070 // path to the object into the PDB. If this is a plain object, we make its
1071 // path absolute. If it's an object in an archive, we make the archive path
1100 void PDBLinker::addDebug(TpiSource *source) {
1109 if (Error e = source->mergeDebugT(&tMerger)) {
1111 warnUnusable(source->file, std::move(e),
1118 Error typeError = std::move(source->typeMergingError);
1120 warnUnusable(source->file, std::move(typeError),
1125 addDebugSymbols(source);
1170 for (TpiSource *source : tMerger.dependencySources)
1171 addDebug(source);
1175 for (TpiSource *source : tMerger.objectSources)
1176 addDebug(source);
1197 for (TpiSource *source : ctx.tpiSourceList) {
1198 nbTypeRecords += source->nbTypeRecords;
1199 nbTypeRecordsBytes += source->nbTypeRecordsBytes;
1430 StringRef path, pdb::DbiModuleDescriptorBuilder &mod) {
1453 ebs.Fields.push_back(path);
1539 sys::path::native(libPath);