Searched refs:BinOrErr (Results 1 – 9 of 9) sorted by relevance
96 Expected<std::unique_ptr<Binary>> BinOrErr = in createBinary() local98 if (!BinOrErr) in createBinary()99 return BinOrErr.takeError(); in createBinary()100 std::unique_ptr<Binary> &Bin = BinOrErr.get(); in createBinary()
98 Expected<std::unique_ptr<Binary>> BinOrErr = in DumpInput() local100 if (!BinOrErr) in DumpInput()101 error(Filename, errorToErrorCode(BinOrErr.takeError())); in DumpInput()103 if (auto *Obj = dyn_cast<ObjectFile>(BinOrErr->get())) in DumpInput()105 else if (auto *Fat = dyn_cast<MachOUniversalBinary>(BinOrErr->get())) in DumpInput()
84 Expected<std::unique_ptr<Binary>> BinOrErr = in createBinary() local86 if (!BinOrErr) in createBinary()87 return BinOrErr.takeError(); in createBinary()88 std::unique_ptr<Binary> &Bin = BinOrErr.get(); in createBinary()
335 Expected<OwningBinary<Binary>> BinOrErr = createBinary(Path); in getOrCreateObject() local336 if (!BinOrErr) { in getOrCreateObject()338 return BinOrErr.takeError(); in getOrCreateObject()340 Bin = BinOrErr->getBinary(); in getOrCreateObject()341 BinaryForPath.insert(std::make_pair(Path, std::move(BinOrErr.get()))); in getOrCreateObject()
327 Expected<OwningBinary<Binary>> BinOrErr = createBinary(Path); in getOrCreateObject() local328 if (!BinOrErr) { in getOrCreateObject()330 return BinOrErr.takeError(); in getOrCreateObject()332 Bin = BinOrErr->getBinary(); in getOrCreateObject()333 BinaryForPath.insert(std::make_pair(Path, std::move(BinOrErr.get()))); in getOrCreateObject()
258 Expected<OwningBinary<Binary>> BinOrErr = createBinary(OutputFile); in verify() local259 if (!BinOrErr) { in verify()260 errs() << OutputFile << ": " << toString(BinOrErr.takeError()); in verify()264 Binary &Binary = *BinOrErr.get().getBinary(); in verify()
465 Expected<std::unique_ptr<Binary>> BinOrErr = object::createBinary(Buffer); in handleBuffer() local466 error(Filename, errorToErrorCode(BinOrErr.takeError())); in handleBuffer()469 if (auto *Obj = dyn_cast<ObjectFile>(BinOrErr->get())) { in handleBuffer()475 else if (auto *Fat = dyn_cast<MachOUniversalBinary>(BinOrErr->get())) in handleBuffer()495 else if (auto *Arch = dyn_cast<Archive>(BinOrErr->get())) in handleBuffer()
598 auto BinOrErr = object::createBinary(ObjectBuffer); in loadBinaryFormat() local599 if (!BinOrErr) in loadBinaryFormat()600 return BinOrErr.takeError(); in loadBinaryFormat()601 auto Bin = std::move(BinOrErr.get()); in loadBinaryFormat()
635 auto BinOrErr = createBinary(ObjectBuffer); in loadBinaryFormat() local636 if (!BinOrErr) in loadBinaryFormat()637 return BinOrErr.takeError(); in loadBinaryFormat()638 auto Bin = std::move(BinOrErr.get()); in loadBinaryFormat()