Lines Matching +defs:buffer +defs:file +defs:name

48   Writer() : buffer(errorHandler().outputBuffer) {}
69 std::unique_ptr<FileOutputBuffer> &buffer;
223 LCSegment(StringRef name, OutputSegment *seg) : name(name), seg(seg) {}
239 memcpy(c->segname, name.data(), name.size());
257 memcpy(sectHdr->sectname, osec->name.data(), osec->name.size());
258 memcpy(sectHdr->segname, name.data(), name.size());
271 StringRef name;
340 c->dylib.name = sizeof(dylib_command);
375 c->name = sizeof(dylinker_command);
439 explicit LCDyldEnv(StringRef name) : name(name) {}
442 return alignToPowerOf2(sizeof(dyld_env_command) + name.size() + 1,
452 c->name = sizeof(dyld_env_command);
454 memcpy(buf, name.data(), name.size());
455 buf[name.size()] = '\0';
459 StringRef name;
531 // Stores a unique identifier for the output file based on an MD5 hash of its
584 return seg->name == segment_names::text;
786 for (const InputFile *file : inputFiles) {
787 if (auto *objFile = dyn_cast<ObjFile>(file))
821 in.header->addLoadCommand(make<LCSegment<LP>>(seg->name, seg));
856 llvm_unreachable("unhandled output file type");
884 for (InputFile *file : inputFiles) {
885 if (auto *dylibFile = dyn_cast<DylibFile>(file))
919 // framework name via an $ld$ symbol depending on platform_version
927 // framework. The re-export will usually point to the tbd file
1040 llvm_unreachable("unhandled output file type");
1061 if (osec->name == section_names::ehFrame &&
1076 auto it = concatOutputSections.find({ssec->segname, ssec->name});
1089 ssec->name);
1192 buffer = std::move(*bufferOrErr);
1193 in.bufferStart = buffer->getBufferStart();
1199 uint8_t *buf = buffer->getBufferStart();
1213 uint8_t *buf = buffer->getBufferStart();
1215 parallelForEach(inputFiles, [buf](const InputFile *file) {
1216 if (const auto *objFile = dyn_cast<ObjFile>(file))
1221 // In order to utilize multiple cores, we first split the buffer into chunks,
1227 ArrayRef<uint8_t> data{buffer->getBufferStart(), buffer->getBufferEnd()};
1260 uint8_t *buf = buffer->getBufferStart() + oseg->fileOff;
1293 codeSignatureSection->writeHashes(buffer->getBufferStart());
1298 TimeTraceScope timeScope("Write output file");
1310 if (auto e = buffer->commit())
1311 fatal("failed to write output '" + buffer->getPath() +