reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/Error.h
 1100   friend Error errorCodeToError(std::error_code);
 1128 Error errorCodeToError(std::error_code EC);

References

examples/Kaleidoscope/BuildingAJIT/Chapter5/RemoteJITUtils.h
   43           return llvm::errorCodeToError(
   61           return llvm::errorCodeToError(
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
  127       Err = errorCodeToError(EC);
  138       Err = errorCodeToError(EC);
  152       return errorCodeToError(EC);
  170       return errorCodeToError(EC);
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
  126         return errorCodeToError(EC);
  137         return errorCodeToError(orcError(OrcErrorCode::RemoteMProtectAddrUnrecognized));
  138       return errorCodeToError(
  209       return errorCodeToError(
  219       return errorCodeToError(
  238       return errorCodeToError(
  248       return errorCodeToError(
  262       return errorCodeToError(
  288       return errorCodeToError(EC);
  293     return errorCodeToError(sys::Memory::protectMappedMemory(
  305       return errorCodeToError(EC);
  380       return errorCodeToError(
  401       return errorCodeToError(
include/llvm/Object/COFF.h
 1002         return errorCodeToError(EC);
 1008         return errorCodeToError(EC);
 1011     return errorCodeToError(object_error::parse_failed);
include/llvm/Object/ELFObjectFile.h
  729     return errorCodeToError(EC);
include/llvm/Object/ObjectFile.h
  323     return errorCodeToError(object_error::parse_failed);
include/llvm/Support/Error.h
 1139     return errorCodeToError(EC);
 1278   return createFileError(F, errorCodeToError(EC));
 1284   return createFileError(F, Line, errorCodeToError(EC));
lib/Bitcode/Reader/BitcodeReader.cpp
 6726     return errorCodeToError(FileOrErr.getError());
lib/DebugInfo/DWARF/DWARFContext.cpp
 1691                           errorCodeToError(object_error::parse_failed)));
lib/DebugInfo/GSYM/GsymCreator.cpp
   48     return llvm::errorCodeToError(EC);
lib/DebugInfo/GSYM/GsymReader.cpp
   41     return llvm::errorCodeToError(Err);
lib/DebugInfo/PDB/PDB.cpp
   31       return errorCodeToError(ErrorOrBuffer.getError());
lib/DebugInfo/Symbolize/Symbolize.cpp
  405   return errorCodeToError(object_error::arch_not_found);
  421     return errorCodeToError(EC);
lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp
   55         return errorCodeToError(EC);
   65           return errorCodeToError(EC);
  106     return errorCodeToError(EC);
lib/ExecutionEngine/Orc/OrcABISupport.cpp
  161     return errorCodeToError(EC);
  179     return errorCodeToError(EC);
  243     return errorCodeToError(EC);
  260     return errorCodeToError(EC);
  511     return errorCodeToError(EC);
  527     return errorCodeToError(EC);
  697     return errorCodeToError(EC);
  720     return errorCodeToError(EC);
  943     return errorCodeToError(EC);
  971     return errorCodeToError(EC);
lib/IR/RemarkStreamer.cpp
  169     return make_error<RemarkSetupFileError>(errorCodeToError(EC));
lib/LTO/Caching.cpp
   33     return errorCodeToError(EC);
  112             return errorCodeToError(EC);
lib/LTO/LTO.cpp
 1229       return errorCodeToError(EC);
 1236         return errorCodeToError(EC);
 1408     return errorCodeToError(EC);
lib/LTO/LTOBackend.cpp
   64     return errorCodeToError(EC);
lib/Object/Archive.cpp
  451     return errorCodeToError(EC);
  728     Err = errorCodeToError(object_error::parse_failed);
  834       return errorCodeToError(object_error::parse_failed);
  846       return errorCodeToError(object_error::parse_failed);
lib/Object/ArchiveWriter.cpp
   86     return errorCodeToError(EC);
   92     return errorCodeToError(make_error_code(errc::is_a_directory));
   97     return errorCodeToError(MemberBufferOrErr.getError());
  100     return errorCodeToError(EC);
  524     return errorCodeToError(std::error_code(errno, std::generic_category()));
lib/Object/Binary.cpp
   83     return errorCodeToError(object_error::invalid_file_type);
   87     return errorCodeToError(object_error::invalid_file_type);
  101     return errorCodeToError(EC);
lib/Object/COFFObjectFile.cpp
  153     return errorCodeToError(EC);
  179     return errorCodeToError(EC);
  255     return errorCodeToError(EC);
 1077       return errorCodeToError(EC);
 1627     return errorCodeToError(EC);
 1829       return errorCodeToError(EC);
lib/Object/IRObjectFile.cpp
   81         return errorCodeToError(object_error::bitcode_section_not_found);
   86   return errorCodeToError(object_error::bitcode_section_not_found);
  105     return errorCodeToError(object_error::invalid_file_type);
lib/Object/MachOObjectFile.cpp
 2001   return errorCodeToError(object_error::parse_failed);
lib/Object/ObjectFile.cpp
  132     return errorCodeToError(object_error::invalid_file_type);
  134     return errorCodeToError(object_error::invalid_file_type);
  172     return errorCodeToError(EC);
lib/Object/SymbolicFile.cpp
   57     return errorCodeToError(object_error::invalid_file_type);
lib/Object/XCOFFObjectFile.cpp
   29     return errorCodeToError(EC);
  407     return errorCodeToError(object_error::invalid_section_index);
  514     return errorCodeToError(object_error::invalid_symbol_index);
  572   return errorCodeToError(object_error::parse_failed);
  619     return errorCodeToError(object_error::string_table_non_null_end);
lib/ObjectYAML/DWARFEmitter.cpp
  359     return errorCodeToError(YIn.error());
lib/ProfileData/Coverage/CoverageMapping.cpp
  171       return errorCodeToError(errc::argument_out_of_domain);
  175       return errorCodeToError(errc::argument_out_of_domain);
  319       return errorCodeToError(EC);
lib/ProfileData/Coverage/CoverageMappingReader.cpp
  694       return errorCodeToError(object_error::arch_not_found);
lib/ProfileData/InstrProfReader.cpp
   45     return errorCodeToError(EC);
lib/Support/FileOutputBuffer.cpp
  103       return errorCodeToError(EC);
  123     return errorCodeToError(EC);
  143     return errorCodeToError(EC);
  188     return errorCodeToError(errc::is_a_directory);
lib/Support/Path.cpp
 1138     return errorCodeToError(EC);
 1155   return errorCodeToError(RemoveEC);
 1197     return errorCodeToError(EC);
 1201   return errorCodeToError(RenameEC);
 1220     return errorCodeToError(EC);
 1232     return errorCodeToError(EC);
 1240     return errorCodeToError(EC);
lib/Support/Unix/Path.inc
  947     return errorCodeToError(EC);
  994     return errorCodeToError(EC);
 1006     return errorCodeToError(std::error_code(errno, std::generic_category()));
 1022     return errorCodeToError(std::error_code(errno, std::generic_category()));
lib/Support/Unix/Process.inc
   80     return errorCodeToError(std::error_code(errno, std::generic_category()));
lib/ToolDrivers/llvm-lib/LibDriver.cpp
  120     fatalOpenError(errorCodeToError(MaybeBuf.getError()), Arg->getValue());
  344     fatalOpenError(errorCodeToError(MOrErr.getError()), Path);
lib/Transforms/IPO/LowerTypeTests.cpp
 1679     ExitOnErr(errorCodeToError(In.error()));
 1693     ExitOnErr(errorCodeToError(EC));
lib/Transforms/IPO/WholeProgramDevirt.cpp
  754     ExitOnErr(errorCodeToError(In.error()));
  769     ExitOnErr(errorCodeToError(EC));
lib/XRay/InstrumentationMap.cpp
  152       return errorCodeToError(
tools/clang/lib/Basic/FileManager.cpp
  145     return llvm::errorCodeToError(SeenDirInsertResult.first->second.getError());
  167     return llvm::errorCodeToError(statError);
  211       return llvm::errorCodeToError(
  243     return llvm::errorCodeToError(DirInfoOrErr.getError());
  262     return llvm::errorCodeToError(statError);
tools/clang/lib/Serialization/GlobalModuleIndex.cpp
  262                           llvm::errorCodeToError(BufferOrErr.getError()));
tools/clang/lib/Tooling/Tooling.cpp
  235     return llvm::errorCodeToError(EC);
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
  240     return errorCodeToError(Buffer.getError());
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp
  136     return llvm::errorCodeToError(Buffer.getError());
tools/clang/tools/extra/clangd/JSONTransport.cpp
   85         return llvm::errorCodeToError(
   99     return llvm::errorCodeToError(std::make_error_code(std::errc::io_error));
tools/clang/tools/extra/clangd/index/Background.cpp
  351     return llvm::errorCodeToError(Buf.getError());
tools/clang/tools/extra/clangd/index/YAMLSerialization.cpp
  369       return llvm::errorCodeToError(Yin.error());
tools/dsymutil/BinaryHolder.cpp
   51     return errorCodeToError(Err);
   90     return errorCodeToError(Err);
  142   return errorCodeToError(object::object_error::arch_not_found);
  204     return errorCodeToError(errc::no_such_file_or_directory);
tools/dsymutil/BinaryHolder.h
   71           return errorCodeToError(object::object_error::invalid_file_type);
tools/dsymutil/DwarfLinker.cpp
 2515         "cannot create directory: " + toString(errorCodeToError(EC)), EC);
 2536            toString(errorCodeToError(EC)));
tools/dsymutil/dsymutil.cpp
  136       return errorCodeToError(EC);
  143         return errorCodeToError(EC);
  283         "cannot create Plist: " + toString(errorCodeToError(EC)), EC);
  344         "cannot create bundle: " + toString(errorCodeToError(EC)), EC);
tools/lld/COFF/DebugTypes.cpp
  180     return createFileError(ts.Name, errorCodeToError(std::error_code(
tools/lld/COFF/Driver.cpp
  310       reportBufferError(errorCodeToError(mbOrErr.second), childName);
  796     handleError(errorCodeToError(sys::fs::rename(tmpName, path)));
tools/lld/lib/Driver/DarwinLdDriver.cpp
  263     return llvm::errorCodeToError(ec);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
 1529     return llvm::errorCodeToError(_ec);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  893           return llvm::errorCodeToError(EC);
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
 1304       return llvm::errorCodeToError(ec);
tools/lldb/include/lldb/Utility/Reproducer.h
  310       return llvm::errorCodeToError(buffer.getError());
tools/lldb/source/Commands/CommandObjectReproducer.cpp
  256         SetError(result, errorCodeToError(buffer.getError()));
  316           SetError(result, errorCodeToError(err));
  329         SetError(result, errorCodeToError(err));
  338         SetError(result, errorCodeToError(err));
tools/lldb/source/Host/common/FileSystem.cpp
   64     return llvm::errorCodeToError(buffer.getError());
  430     return errorCodeToError(path.getError());
  436     return llvm::errorCodeToError(
tools/lldb/source/Host/common/ThreadLauncher.cpp
   72     return llvm::errorCodeToError(
tools/lldb/source/Initialization/SystemInitializerCommon.cpp
   87         return llvm::errorCodeToError(ec);
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
  352           return llvm::errorCodeToError(
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
  183     return errorCodeToError(err);
  189     return errorCodeToError(err);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
 2767       return llvm::errorCodeToError(buffer_or_error.getError());
tools/lldb/source/Utility/Reproducer.cpp
  239     return llvm::errorCodeToError(ec);
tools/lldb/source/Utility/Status.cpp
   90     return llvm::errorCodeToError(
tools/lldb/unittests/TestingSupport/TestUtilities.cpp
   37     return llvm::errorCodeToError(EC);
   54     return llvm::errorCodeToError(BufferOrError.getError());
tools/lldb/unittests/Utility/StatusTest.cpp
   29       llvm::errorCodeToError(std::error_code(EAGAIN, std::generic_category())));
tools/lli/RemoteJITUtils.h
   41           return llvm::errorCodeToError(
   59           return llvm::errorCodeToError(
tools/llvm-cov/SourceCoverageView.cpp
   64     return errorCodeToError(E);
   71     return errorCodeToError(E);
tools/llvm-exegesis/lib/BenchmarkResult.cpp
  362         return errorCodeToError(Yin.error());
  404     if (auto E = errorCodeToError(openFileForWrite(
tools/llvm-exegesis/lib/BenchmarkRunner.cpp
  162   if (Error E = errorCodeToError(
tools/llvm-jitlink/llvm-jitlink.cpp
  265             return errorCodeToError(EC);
  275             return errorCodeToError(EC);
  355       Err = errorCodeToError(EC);
tools/llvm-lto2/llvm-lto2.cpp
  157   check(errorCodeToError(EC), Msg);
tools/llvm-modextract/llvm-modextract.cpp
   58   ExitOnErr(errorCodeToError(EC));
tools/llvm-objcopy/COFF/COFFObjcopy.cpp
  181       return createFileError(FileName, errorCodeToError(BufOrErr.getError()));
tools/llvm-objcopy/COFF/Reader.cpp
   50       return errorCodeToError(EC);
   62       return errorCodeToError(EC);
  105       return errorCodeToError(EC);
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  698       return createFileError(File, errorCodeToError(BufOrErr.getError()));
tools/llvm-objdump/COFFDump.cpp
  239     reportError(errorCodeToError(EC), Obj->getFileName());
  279     reportError(errorCodeToError(EC), Obj->getFileName());
  287     reportError(errorCodeToError(EC), Obj->getFileName());
  313     reportError(errorCodeToError(EC), Obj->getFileName());
  321     reportError(errorCodeToError(EC), Obj->getFileName());
  667       reportError(errorCodeToError(EC), coff->getFileName());
  699           reportError(errorCodeToError(EC), coff->getFileName());
  715           reportError(errorCodeToError(EC), coff->getFileName());
  727           reportError(errorCodeToError(EC), coff->getFileName());
tools/llvm-objdump/MachODump.cpp
 7362         reportError(errorCodeToError(EC), DSYMPath);
tools/llvm-objdump/llvm-objdump.cpp
 1176         reportError(errorCodeToError(EC), Obj->getFileName());
 1182         reportError(errorCodeToError(EC), Obj->getFileName());
 2226       reportError(errorCodeToError(object_error::invalid_file_type),
 2254     reportError(errorCodeToError(object_error::invalid_file_type), file);
tools/llvm-pdbutil/llvm-pdbutil.cpp
  751     ExitOnErr(createFileError(Path, errorCodeToError(ErrorOrBuffer.getError())));
tools/llvm-profdata/llvm-profdata.cpp
  509         handleMergeWriterError(errorCodeToError(EC), Input.Filename, FName);
tools/llvm-readobj/COFFDumper.cpp
  729         reportError(errorCodeToError(EC), Obj->getFileName());
  744         reportError(errorCodeToError(EC), Obj->getFileName());
  754     reportError(errorCodeToError(EC), Obj->getFileName());
  757     reportError(errorCodeToError(EC), Obj->getFileName());
  961     reportError(errorCodeToError(object_error::parse_failed),
  988       return reportError(errorCodeToError(object_error::parse_failed),
  998       return reportError(errorCodeToError(object_error::parse_failed),
 1029         reportError(errorCodeToError(object_error::parse_failed),
 1037         reportError(errorCodeToError(EC), Obj->getFileName());
 1042         reportError(errorCodeToError(object_error::parse_failed),
 1063         reportError(errorCodeToError(EC), Obj->getFileName());
 1133           reportError(errorCodeToError(object_error::parse_failed),
 1229     reportError(errorCodeToError(object_error::parse_failed),
 1236     reportError(errorCodeToError(object_error::parse_failed),
 1261         reportError(errorCodeToError(object_error::parse_failed),
 1269         reportError(errorCodeToError(object_error::parse_failed),
 1305     reportError(errorCodeToError(object_error::parse_failed),
 1482         reportError(errorCodeToError(EC), Obj->getFileName());
 1493         reportError(errorCodeToError(EC), Obj->getFileName());
 1501         reportError(errorCodeToError(EC), Obj->getFileName());
 1511         reportError(errorCodeToError(EC), Obj->getFileName());
 1521         reportError(errorCodeToError(EC), Obj->getFileName());
 1538           reportError(errorCodeToError(EC), Obj->getFileName());
 1549         reportError(errorCodeToError(EC), Obj->getFileName());
 1558         reportError(errorCodeToError(EC), Obj->getFileName());
 1625       reportError(errorCodeToError(EC), Obj->getFileName());
 1628       reportError(errorCodeToError(EC), Obj->getFileName());
 1641       reportError(errorCodeToError(EC), Obj->getFileName());
 1645       reportError(errorCodeToError(EC), Obj->getFileName());
 1650       reportError(errorCodeToError(EC), Obj->getFileName());
 1661       reportError(errorCodeToError(EC), Obj->getFileName());
 1665       reportError(errorCodeToError(EC), Obj->getFileName());
 1669       reportError(errorCodeToError(EC), Obj->getFileName());
 1684       reportError(errorCodeToError(EC), Obj->getFileName());
 1688       reportError(errorCodeToError(EC), Obj->getFileName());
 1707       reportError(errorCodeToError(EC), Obj->getFileName());
 1709       reportError(errorCodeToError(EC), Obj->getFileName());
 1711       reportError(errorCodeToError(EC), Obj->getFileName());
 1750       reportError(errorCodeToError(EC), Obj->getFileName());
 1752       reportError(errorCodeToError(EC), Obj->getFileName());
 1837         reportError(errorCodeToError(object_error::parse_failed),
 1954       reportError(errorCodeToError(EC), Obj->getFileName());
tools/llvm-readobj/ELFDumper.cpp
  202       reportError(errorCodeToError(llvm::object::object_error::parse_failed),
tools/llvm-readobj/llvm-readobj.cpp
  446     reportError(errorCodeToError(EC), FileStr);
  566       reportError(errorCodeToError(readobj_error::unrecognized_file_format),
  616     reportError(errorCodeToError(readobj_error::unrecognized_file_format),
tools/obj2yaml/macho2yaml.cpp
  201     return errorCodeToError(Err);
tools/obj2yaml/obj2yaml.cpp
   22     return errorCodeToError(coff2yaml(outs(), cast<COFFObjectFile>(Obj)));
   25     return errorCodeToError(xcoff2yaml(outs(), cast<XCOFFObjectFile>(Obj)));
   31     return errorCodeToError(wasm2yaml(outs(), cast<WasmObjectFile>(Obj)));
   33   return errorCodeToError(obj2yaml_error::unsupported_obj_file_format);
   45     return errorCodeToError(macho2yaml(outs(), Binary));
unittests/Support/ErrorTest.cpp
  692   EXPECT_EQ(errorToErrorCode(errorCodeToError(std::error_code())),
  697   EXPECT_EQ(errorToErrorCode(errorCodeToError(errc::invalid_argument)),