Lines Matching refs:mbref
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()
450 return makeDylibFromTAPI(*mbref, umbrella); in loadDylib()
452 return make<DylibFile>(*mbref, umbrella); in loadDylib()
656 BitcodeFile::BitcodeFile(MemoryBufferRef mbref) in BitcodeFile() argument
657 : InputFile(BitcodeKind, mbref) { in BitcodeFile()
658 obj = check(lto::InputFile::create(mbref)); in BitcodeFile()