Searched refs:BinOrErr (Results 1 – 4 of 4) sorted by relevance
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()
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()
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()