Lines Matching refs:ModuleOrErr
423 ErrorOr<std::unique_ptr<LTOModule>> ModuleOrErr = in printMachOCPUOnly() local
425 if (!ModuleOrErr) in printMachOCPUOnly()
426 error(ModuleOrErr, "llvm-lto: "); in printMachOCPUOnly()
428 Expected<uint32_t> CPUType = (*ModuleOrErr)->getMachOCPUType(); in printMachOCPUOnly()
429 Expected<uint32_t> CPUSubType = (*ModuleOrErr)->getMachOCPUSubType(); in printMachOCPUOnly()
527 auto ModuleOrErr = Mod.parseModule(CTX); in loadModuleFromInput() local
528 if (!ModuleOrErr) { in loadModuleFromInput()
529 handleAllErrors(ModuleOrErr.takeError(), [&](ErrorInfoBase &EIB) { in loadModuleFromInput()
536 maybeVerifyModule(**ModuleOrErr); in loadModuleFromInput()
540 (*ModuleOrErr)->setModuleIdentifier(ThinLTOModuleId); in loadModuleFromInput()
542 return std::move(*ModuleOrErr); in loadModuleFromInput()
986 ErrorOr<std::unique_ptr<LTOModule>> ModuleOrErr = in main() local
988 std::unique_ptr<LTOModule> &Module = *ModuleOrErr; in main()