Home
last modified time | relevance | path

Searched refs:mbref (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/lld/MachO/
H A DDriverUtils.cpp240 DylibFile *macho::loadDylib(MemoryBufferRef mbref, DylibFile *umbrella, in loadDylib() argument
242 CachedHashStringRef path(mbref.getBufferIdentifier()); in loadDylib()
253 realPathIfDifferent(mbref.getBufferIdentifier())); in loadDylib()
267 file_magic magic = identify_magic(mbref.getBuffer()); in loadDylib()
269 Expected<std::unique_ptr<InterfaceFile>> result = TextAPIReader::get(mbref); in loadDylib()
271 error("could not load TAPI file at " + mbref.getBufferIdentifier() + in loadDylib()
291 file = make<DylibFile>(mbref, umbrella, isBundleLoader, explicitlyLinked); in loadDylib()
297 newFile->parseLoadCommands(mbref); in loadDylib()
H A DDriver.cpp292 MemoryBufferRef mbref = *buffer; in addFile() local
295 file_magic magic = identify_magic(mbref.getBuffer()); in addFile()
311 object::Archive::create(mbref), path + ": failed to parse archive"); in addFile()
399 newFile = make<ObjFile>(mbref, getModTime(path), "", isLazy); in addFile()
405 loadDylib(mbref, nullptr, /*isBundleLoader=*/false, isExplicit)) in addFile()
409 newFile = make<BitcodeFile>(mbref, "", 0, isLazy); in addFile()
417 if (DylibFile *dylibFile = loadDylib(mbref, nullptr, isBundleLoader)) in addFile()
431 if (newFile->lazy && hasObjCSection(mbref)) in addFile()
571 MemoryBufferRef mbref = *buffer; in addFileList() local
572 for (StringRef path : args::getLines(mbref)) in addFileList()
[all …]
H A DInputFiles.cpp227 MemoryBufferRef mbref = mb->getMemBufferRef(); in readFile() local
231 const char *buf = mbref.getBufferStart(); in readFile()
233 if (mbref.getBufferSize() < sizeof(uint32_t) || in readFile()
236 tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile()
237 return cachedReads[key] = mbref; in readFile()
253 buf + mbref.getBufferSize()) { in readFile()
272 if (offset + size > mbref.getBufferSize()) in readFile()
275 tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile()
1559 std::optional<MemoryBufferRef> mbref = readFile(path); in loadDylib() local
1560 if (!mbref) { in loadDylib()
[all …]
H A DDriver.h57 DylibFile *loadDylib(llvm::MemoryBufferRef mbref, DylibFile *umbrella = nullptr,
H A DSectionPriorities.cpp308 MemoryBufferRef mbref = *buffer; in parseOrderFile() local
309 for (StringRef line : args::getLines(mbref)) { in parseOrderFile()
/freebsd/contrib/llvm-project/lld/COFF/
H A DDriver.h174 void addArchiveBuffer(MemoryBufferRef mbref, StringRef symName,
176 void addThinArchiveBuffer(MemoryBufferRef mbref, StringRef symName);
H A DDriver.cpp249 MemoryBufferRef mbref = *mb; in takeBuffer() local
253 ctx.driver.tar->append(relativeToRoot(mbref.getBufferIdentifier()), in takeBuffer()
254 mbref.getBuffer()); in takeBuffer()
255 return mbref; in takeBuffer()
262 MemoryBufferRef mbref = takeBuffer(std::move(mb)); in addBuffer() local
265 switch (identify_magic(mbref.getBuffer())) { in addBuffer()
267 resources.push_back(mbref); in addBuffer()
272 CHECK(Archive::create(mbref), filename + ": failed to parse archive"); in addBuffer()
286 addFile(make<ArchiveFile>(ctx, mbref)); in addBuffer()
289 addFile(BitcodeFile::create(ctx, mbref, "", 0, lazy)); in addBuffer()
[all …]
H A DInputFiles.cpp253 MemoryBufferRef mbref = in getArchiveMembers() local
259 mbref.getBuffer()); in getArchiveMembers()
261 v.push_back(mbref); in getArchiveMembers()
1370 MemoryBufferRef mbref(mb.getBuffer(), in create() local
1377 std::unique_ptr<lto::InputFile> obj = check(lto::InputFile::create(mbref)); in create()
1576 MemoryBufferRef mbref = MemoryBufferRef(StringRef(buf, size), s->dllName); in makeImport() local
1577 ImportFile *impFile = make<ImportFile>(symtab.ctx, mbref); in makeImport()
H A DDriverUtils.cpp689 MemoryBufferRef mbref = **e; in convertResToCOFF() local
691 return mbref; in convertResToCOFF()
/freebsd/contrib/llvm-project/lld/ELF/
H A DDriver.cpp207 MemoryBufferRef mbref = in getArchiveMembers() local
213 mbref.getBuffer()); in getArchiveMembers()
214 v.push_back(std::make_pair(mbref, c.getChildOffset())); in getArchiveMembers()
251 MemoryBufferRef mbref = *buffer; in addFile() local
254 files.push_back(std::make_unique<BinaryFile>(ctx, mbref)); in addFile()
258 switch (identify_magic(mbref.getBuffer())) { in addFile()
260 readLinkerScript(ctx, mbref); in addFile()
263 auto members = getArchiveMembers(ctx, mbref); in addFile()
317 path = mbref.getBufferIdentifier(); in addFile()
319 ctx, mbref, withLOption ? path::filename(path) : path); in addFile()
[all …]
H A DInputFiles.cpp260 MemoryBufferRef mbref = (*mbOrErr)->getMemBufferRef(); in readFile() local
264 ctx.tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile()
265 return mbref; in readFile()
1816 MemoryBufferRef mbref(mb.getBuffer(), name); in BitcodeFile() local
1818 obj = CHECK2(lto::InputFile::create(mbref), this); in BitcodeFile()