• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Object/

Lines Matching refs:unwrap

23 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) {
32 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) {
42 inline symbol_iterator *unwrap(LLVMSymbolIteratorRef SI) {
52 inline relocation_iterator *unwrap(LLVMRelocationIteratorRef SI) {
67 auto maybeContext = Context ? unwrap(Context) : nullptr;
69 createBinary(unwrap(MemBuf)->getMemBufferRef(), maybeContext));
79 auto Buf = unwrap(BR)->getMemoryBufferRef();
86 delete unwrap(BR);
132 return BinaryTypeMapper::mapBinaryTypeToLLVMBinaryType(unwrap(BR)->getType());
139 auto universal = cast<MachOUniversalBinary>(unwrap(BR));
150 auto OF = cast<ObjectFile>(unwrap(BR));
159 auto OF = cast<ObjectFile>(unwrap(BR));
160 return (*unwrap(SI) == OF->section_end()) ? 1 : 0;
164 auto OF = cast<ObjectFile>(unwrap(BR));
173 auto OF = cast<ObjectFile>(unwrap(BR));
174 return (*unwrap(SI) == OF->symbol_end()) ? 1 : 0;
179 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf));
194 delete unwrap(ObjectFile);
199 OwningBinary<ObjectFile> *OB = unwrap(OF);
205 delete unwrap(SI);
210 OwningBinary<ObjectFile> *OB = unwrap(OF);
211 return (*unwrap(SI) == OB->getBinary()->section_end()) ? 1 : 0;
215 ++(*unwrap(SI));
220 Expected<section_iterator> SecOrErr = (*unwrap(Sym))->getSection();
228 *unwrap(Sect) = *SecOrErr;
233 OwningBinary<ObjectFile> *OB = unwrap(OF);
239 delete unwrap(SI);
244 OwningBinary<ObjectFile> *OB = unwrap(OF);
245 return (*unwrap(SI) == OB->getBinary()->symbol_end()) ? 1 : 0;
249 ++(*unwrap(SI));
254 auto NameOrErr = (*unwrap(SI))->getName();
261 return (*unwrap(SI))->getSize();
265 if (Expected<StringRef> E = (*unwrap(SI))->getContents())
272 return (*unwrap(SI))->getAddress();
277 return (*unwrap(SI))->containsSymbol(**unwrap(Sym));
282 relocation_iterator SI = (*unwrap(Section))->relocation_begin();
287 delete unwrap(SI);
292 return (*unwrap(SI) == (*unwrap(Section))->relocation_end()) ? 1 : 0;
296 ++(*unwrap(SI));
302 Expected<StringRef> Ret = (*unwrap(SI))->getName();
314 Expected<uint64_t> Ret = (*unwrap(SI))->getAddress();
326 return (*unwrap(SI))->getCommonSize();
331 return (*unwrap(RI))->getOffset();
335 symbol_iterator ret = (*unwrap(RI))->getSymbol();
340 return (*unwrap(RI))->getType();
346 (*unwrap(RI))->getTypeName(ret);