/freebsd/contrib/llvm-project/lld/MachO/ |
H A D | DriverUtils.cpp | 224 DylibFile *macho::loadDylib(MemoryBufferRef mbref, DylibFile *umbrella, in loadDylib() argument 226 CachedHashStringRef path(mbref.getBufferIdentifier()); in loadDylib() 235 file_magic magic = identify_magic(mbref.getBuffer()); in loadDylib() 237 Expected<std::unique_ptr<InterfaceFile>> result = TextAPIReader::get(mbref); in loadDylib() 239 error("could not load TAPI file at " + mbref.getBufferIdentifier() + in loadDylib() 259 file = make<DylibFile>(mbref, umbrella, isBundleLoader, explicitlyLinked); in loadDylib() 265 newFile->parseLoadCommands(mbref); in loadDylib()
|
H A D | InputFiles.cpp | 229 MemoryBufferRef mbref = mb->getMemBufferRef(); in readFile() local 233 const char *buf = mbref.getBufferStart(); in readFile() 235 if (mbref.getBufferSize() < sizeof(uint32_t) || in readFile() 238 tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile() 239 return cachedReads[key] = mbref; in readFile() 255 buf + mbref.getBufferSize()) { in readFile() 274 if (offset + size > mbref.getBufferSize()) in readFile() 277 tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile() 1561 std::optional<MemoryBufferRef> mbref = readFile(path); in loadDylib() local 1562 if (!mbref) { in loadDylib() [all …]
|
H A D | Driver.cpp | 295 MemoryBufferRef mbref = *buffer; in addFile() local 298 file_magic magic = identify_magic(mbref.getBuffer()); in addFile() 314 object::Archive::create(mbref), path + ": failed to parse archive"); in addFile() 403 newFile = make<ObjFile>(mbref, getModTime(path), "", isLazy); in addFile() 409 loadDylib(mbref, nullptr, /*isBundleLoader=*/false, isExplicit)) in addFile() 413 newFile = make<BitcodeFile>(mbref, "", 0, isLazy); in addFile() 421 if (DylibFile *dylibFile = loadDylib(mbref, nullptr, isBundleLoader)) in addFile() 435 if (newFile->lazy && hasObjCSection(mbref)) in addFile() 575 MemoryBufferRef mbref = *buffer; in addFileList() local 576 for (StringRef path : args::getLines(mbref)) in addFileList() [all …]
|
H A D | Driver.h | 52 DylibFile *loadDylib(llvm::MemoryBufferRef mbref, DylibFile *umbrella = nullptr,
|
H A D | SectionPriorities.cpp | 304 MemoryBufferRef mbref = *buffer; in parseOrderFile() local 305 for (StringRef line : args::getLines(mbref)) { in parseOrderFile()
|
/freebsd/contrib/llvm-project/lld/COFF/ |
H A D | Driver.cpp | 169 MemoryBufferRef mbref = *mb; in takeBuffer() local 173 ctx.driver.tar->append(relativeToRoot(mbref.getBufferIdentifier()), in takeBuffer() 174 mbref.getBuffer()); in takeBuffer() 175 return mbref; in takeBuffer() 182 MemoryBufferRef mbref = takeBuffer(std::move(mb)); in addBuffer() local 186 switch (identify_magic(mbref.getBuffer())) { in addBuffer() 188 resources.push_back(mbref); in addBuffer() 193 CHECK(Archive::create(mbref), filename + ": failed to parse archive"); in addBuffer() 202 ctx.symtab.addFile(make<ArchiveFile>(ctx, mbref)); in addBuffer() 205 ctx.symtab.addFile(make<BitcodeFile>(ctx, mbref, "", 0, lazy)); in addBuffer() [all …]
|
H A D | InputFiles.cpp | 125 MemoryBufferRef mbref = in getArchiveMembers() local 129 v.push_back(mbref); in getArchiveMembers() 1061 MemoryBufferRef mbref(mb.getBuffer(), in BitcodeFile() local 1068 obj = check(lto::InputFile::create(mbref)); in BitcodeFile() 1250 MemoryBufferRef mbref = MemoryBufferRef(StringRef(buf, size), s->dllName); in makeImport() local 1251 ImportFile *impFile = make<ImportFile>(ctx, mbref); in makeImport()
|
H A D | Driver.h | 187 void addArchiveBuffer(MemoryBufferRef mbref, StringRef symName,
|
H A D | DriverUtils.cpp | 835 MemoryBufferRef mbref = **e; in convertResToCOFF() local 837 return mbref; in convertResToCOFF()
|
/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | Driver.cpp | 229 MemoryBufferRef mbref = in getArchiveMembers() local 234 tar->append(relativeToRoot(check(c.getFullName())), mbref.getBuffer()); in getArchiveMembers() 235 v.push_back(std::make_pair(mbref, c.getChildOffset())); in getArchiveMembers() 272 MemoryBufferRef mbref = *buffer; in addFile() local 275 files.push_back(make<BinaryFile>(mbref)); in addFile() 279 switch (identify_magic(mbref.getBuffer())) { in addFile() 281 readLinkerScript(mbref); in addFile() 284 auto members = getArchiveMembers(mbref); in addFile() 337 path = mbref.getBufferIdentifier(); in addFile() 339 make<SharedFile>(mbref, withLOption ? path::filename(path) : path); in addFile() [all …]
|
H A D | InputFiles.cpp | 259 MemoryBufferRef mbref = (*mbOrErr)->getMemBufferRef(); in readFile() local 263 tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile() 264 return mbref; in readFile() 1721 MemoryBufferRef mbref(mb.getBuffer(), name); in BitcodeFile() local 1723 obj = CHECK(lto::InputFile::create(mbref), this); in BitcodeFile()
|