/external/llvm-project/lld/MachO/ |
D | Driver.cpp | 218 MemoryBufferRef mbref; member 239 MemoryBufferRef mbref = in getArchiveMembers() local 244 tar->append(relativeToRoot(check(c.getFullName())), mbref.getBuffer()); in getArchiveMembers() 249 v.push_back({mbref, modTime}); in getArchiveMembers() 262 MemoryBufferRef mbref = *buffer; in addFile() local 265 auto magic = identify_magic(mbref.getBuffer()); in addFile() 269 object::Archive::create(mbref), path + ": failed to parse archive"); in addFile() 278 make<ObjFile>(member.mbref, member.modTime, path)); in addFile() 295 if (hasObjCSection(member.mbref)) { in addFile() 297 make<ObjFile>(member.mbref, member.modTime, path)); in addFile() [all …]
|
D | InputFiles.cpp | 102 MemoryBufferRef mbref = mb->getMemBufferRef(); in readFile() local 106 const char *buf = mbref.getBufferStart(); in readFile() 110 tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile() 111 return mbref; in readFile() 122 buf + mbref.getBufferSize()) { in readFile() 133 if (offset + size > mbref.getBufferSize()) in readFile() 136 tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile() 442 Optional<MemoryBufferRef> mbref = readFile(path); in loadDylib() local 443 if (!mbref) { in loadDylib() 448 file_magic magic = identify_magic(mbref->getBuffer()); in loadDylib() [all …]
|
D | DriverUtils.cpp | 169 Optional<DylibFile *> macho::makeDylibFromTAPI(MemoryBufferRef mbref, in makeDylibFromTAPI() argument 171 Expected<std::unique_ptr<InterfaceFile>> result = TextAPIReader::get(mbref); in makeDylibFromTAPI() 173 error("could not load TAPI file at " + mbref.getBufferIdentifier() + ": " + in makeDylibFromTAPI()
|
D | Driver.h | 46 llvm::Optional<DylibFile *> makeDylibFromTAPI(llvm::MemoryBufferRef mbref,
|
/external/llvm-project/lld/wasm/ |
D | Driver.cpp | 223 MemoryBufferRef mbref = in getArchiveMembers() local 227 v.push_back(mbref); in getArchiveMembers() 244 MemoryBufferRef mbref = *buffer; in addFile() local 246 switch (identify_magic(mbref.getBuffer())) { in addFile() 255 for (MemoryBufferRef &m : getArchiveMembers(mbref)) { in addFile() 268 CHECK(Archive::create(mbref), path + ": failed to parse archive"); in addFile() 271 error(mbref.getBufferIdentifier() + in addFile() 275 files.push_back(make<ArchiveFile>(mbref)); in addFile() 280 files.push_back(createObjectFile(mbref)); in addFile() 283 error("unknown file type: " + mbref.getBufferIdentifier()); in addFile()
|
D | InputFiles.cpp | 67 MemoryBufferRef mbref = mb->getMemBufferRef(); in readFile() local 71 tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile() 72 return mbref; in readFile()
|
/external/llvm-project/lld/COFF/ |
D | Driver.cpp | 183 MemoryBufferRef mbref = *mb; in takeBuffer() local 187 driver->tar->append(relativeToRoot(mbref.getBufferIdentifier()), in takeBuffer() 188 mbref.getBuffer()); in takeBuffer() 189 return mbref; in takeBuffer() 196 MemoryBufferRef mbref = takeBuffer(std::move(mb)); in addBuffer() local 200 switch (identify_magic(mbref.getBuffer())) { in addBuffer() 202 resources.push_back(mbref); in addBuffer() 207 CHECK(Archive::create(mbref), filename + ": failed to parse archive"); in addBuffer() 216 symtab->addFile(make<ArchiveFile>(mbref)); in addBuffer() 220 symtab->addFile(make<LazyObjFile>(mbref)); in addBuffer() [all …]
|
D | Driver.h | 140 void addArchiveBuffer(MemoryBufferRef mbref, StringRef symName,
|
D | InputFiles.cpp | 129 MemoryBufferRef mbref = in getArchiveMembers() local 133 v.push_back(mbref); in getArchiveMembers() 1032 MemoryBufferRef mbref( in BitcodeFile() local 1038 obj = check(lto::InputFile::create(mbref)); in BitcodeFile()
|
D | DriverUtils.cpp | 753 MemoryBufferRef mbref = **e; in convertResToCOFF() local 755 return mbref; in convertResToCOFF()
|
/external/llvm-project/lld/ELF/ |
D | Driver.cpp | 183 MemoryBufferRef mbref = in getArchiveMembers() local 188 tar->append(relativeToRoot(check(c.getFullName())), mbref.getBuffer()); in getArchiveMembers() 189 v.push_back(std::make_pair(mbref, c.getChildOffset())); in getArchiveMembers() 209 MemoryBufferRef mbref = *buffer; in addFile() local 212 files.push_back(make<BinaryFile>(mbref)); in addFile() 216 switch (identify_magic(mbref.getBuffer())) { in addFile() 218 readLinkerScript(mbref); in addFile() 223 for (const auto &p : getArchiveMembers(mbref)) in addFile() 229 CHECK(Archive::create(mbref), path + ": failed to parse archive"); in addFile() 239 getArchiveMembers(mbref)) in addFile() [all …]
|
D | InputFiles.cpp | 125 MemoryBufferRef mbref = mb->getMemBufferRef(); in readFile() local 129 tar->append(relativeToRoot(path), mbref.getBuffer()); in readFile() 130 return mbref; in readFile() 1675 MemoryBufferRef mbref(mb.getBuffer(), name); in BitcodeFile() local 1677 obj = CHECK(lto::InputFile::create(mbref), this); in BitcodeFile()
|