Home
last modified time | relevance | path

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

/external/llvm-project/lld/MachO/
DDriver.cpp218 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 …]
DInputFiles.cpp102 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 …]
DDriverUtils.cpp169 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()
DDriver.h46 llvm::Optional<DylibFile *> makeDylibFromTAPI(llvm::MemoryBufferRef mbref,
/external/llvm-project/lld/wasm/
DDriver.cpp223 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()
DInputFiles.cpp67 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/
DDriver.cpp183 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 …]
DDriver.h140 void addArchiveBuffer(MemoryBufferRef mbref, StringRef symName,
DInputFiles.cpp129 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()
DDriverUtils.cpp753 MemoryBufferRef mbref = **e; in convertResToCOFF() local
755 return mbref; in convertResToCOFF()
/external/llvm-project/lld/ELF/
DDriver.cpp183 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 …]
DInputFiles.cpp125 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()