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

Declarations

include/llvm/Support/Error.h
 1134 std::error_code errorToErrorCode(Error Err);

References

include/llvm/Object/COFF.h
 1018       return errorToErrorCode(std::move(E));
include/llvm/Object/ELFObjectFile.h
  310       report_fatal_error(errorToErrorCode(RelSecOrErr.takeError()).message());
  405       report_fatal_error(errorToErrorCode(Ret.takeError()).message());
  838     report_fatal_error(errorToErrorCode(SymSecOrErr.takeError()).message());
  930     report_fatal_error(errorToErrorCode(Ret.takeError()).message());
  940     report_fatal_error(errorToErrorCode(Ret.takeError()).message());
include/llvm/Support/Error.h
 1146     return errorToErrorCode(std::move(Err));
lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
   59         return errorToErrorCode(NameOrErr.takeError());
   64           return errorToErrorCode(E.takeError());
  171     return errorToErrorCode(SymbolTypeOrErr.takeError());
  177     return errorToErrorCode(SymbolAddressOrErr.takeError());
  197     return errorToErrorCode(SymbolNameOrErr.takeError());
lib/LTO/Caching.cpp
   57       EC = errorToErrorCode(FDOrErr.takeError());
lib/LTO/LTOModule.cpp
  175     std::error_code EC = errorToErrorCode(std::move(E));
lib/LTO/ThinLTOCodeGenerator.cpp
  360       return errorToErrorCode(FDOrErr.takeError());
lib/Object/COFFObjectFile.cpp
  977       return errorToErrorCode(NameOrErr.takeError());
lib/Support/MemoryBuffer.cpp
  220       return errorToErrorCode(ReadBytes.takeError());
  250     return errorToErrorCode(FDOrErr.takeError());
  369     return errorToErrorCode(FDOrErr.takeError());
  469       return errorToErrorCode(ReadBytes.takeError());
  511     return errorToErrorCode(FDOrErr.takeError());
lib/Support/VirtualFileSystem.cpp
  302     return errorToErrorCode(FDOrErr.takeError());
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
  136                  << errorToErrorCode(Def.takeError()).message();
tools/clang/lib/Basic/FileManager.cpp
  191   return llvm::errorToErrorCode(Result.takeError());
  199   return llvm::errorToErrorCode(Result.takeError());
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  356     return errorToErrorCode(std::move(Err));
tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp
  125       return llvm::errorToErrorCode(Res.takeError());
  137         return llvm::errorToErrorCode(Res.takeError());
  147         return llvm::errorToErrorCode(std::move(Err));
  197       return errorToErrorCode(MaybeRecordID.takeError());
  256       return errorToErrorCode(MaybeRecID.takeError());
tools/clang/lib/Lex/HeaderSearch.cpp
  329     std::error_code EC = llvm::errorToErrorCode(File.takeError());
tools/dsymutil/DwarfLinker.cpp
 2223     return errorToErrorCode(std::move(Err));
 2231     return errorToErrorCode(std::move(Err));
tools/dsymutil/MachODebugMapParser.cpp
  380     return errorToErrorCode(ObjectEntry.takeError());
  385     return errorToErrorCode(ObjectEntry.takeError());
tools/lld/Common/Filesystem.cpp
   98   return errorToErrorCode(FileOutputBuffer::create(path, 1).takeError());
tools/lld/lib/ReaderWriter/FileArchive.cpp
   97       return errorToErrorCode(std::move(err));
  130       return errorToErrorCode(std::move(Err));
  142       return errorToErrorCode(mbOrErr.takeError());
  176         return errorToErrorCode(memberOrErr.takeError());
tools/lld/lib/ReaderWriter/MachO/File.h
  245       return llvm::errorToErrorCode(std::move(ec));
  248       return llvm::errorToErrorCode(std::move(ec));
  335       return llvm::errorToErrorCode(std::move(ec));
  338       return llvm::errorToErrorCode(std::move(ec));
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
  249               errorToErrorCode(binary.takeError()).message().c_str());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
  528           std::error_code code = errorToErrorCode(file.takeError());
tools/lldb/unittests/Host/FileSystemTest.cpp
  301   std::error_code code = errorToErrorCode(file.takeError());
tools/lldb/unittests/Utility/StatusTest.cpp
   49   std::error_code ec = llvm::errorToErrorCode(std::move(eagain));
tools/llvm-ar/llvm-ar.cpp
  265   failIfError(errorToErrorCode(LibOrErr.takeError()),
tools/llvm-cvtres/llvm-cvtres.cpp
  167       reportError(File, errorToErrorCode(BinaryOrErr.takeError()));
  202     reportError(OutputFile, errorToErrorCode(FileOrErr.takeError()));
  211       reportError(OutputFile, errorToErrorCode(BinaryOrErr.takeError()));
tools/llvm-cxxdump/llvm-cxxdump.cpp
   95       error(errorToErrorCode(RelocSymName.takeError()));
  117       error(errorToErrorCode(RelocSymName.takeError()));
  195     error(errorToErrorCode(SymNameOrErr.takeError()));
  198     error(errorToErrorCode(SecIOrErr.takeError()));
  209     error(errorToErrorCode(SymAddressOrErr.takeError()));
  529     auto EC = errorToErrorCode(BinaryOrErr.takeError());
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  474     error(Filename, errorToErrorCode(BuffOrErr.takeError()));
  476     error(Filename, errorToErrorCode(NameOrErr.takeError()));
  480   error(Filename, errorToErrorCode(std::move(Err)));
  488   error(Filename, errorToErrorCode(BinOrErr.takeError()));
  511         error(ObjName, errorToErrorCode(ArchiveOrErr.takeError()));
tools/llvm-mt/llvm-mt.cpp
  153     reportError(OutputFile, errorToErrorCode(FileOrErr.takeError()));
tools/llvm-readobj/ARMEHABIPrinter.h
  425         report_fatal_error(errorToErrorCode(Ret.takeError()).message());
tools/llvm-readobj/ARMWinEHPrinter.cpp
  228       return errorToErrorCode(Type.takeError());
  234       return errorToErrorCode(Address.takeError());
tools/llvm-readobj/COFFDumper.cpp
  287     return errorToErrorCode(NameOrErr.takeError());
tools/llvm-readobj/Win64EHDumper.cpp
  152     return errorToErrorCode(ResolvedAddressOrErr.takeError());
  157     return errorToErrorCode(SI.takeError());
tools/obj2yaml/macho2yaml.cpp
  549       return errorToErrorCode(std::move(Err));
  556       return errorToErrorCode(std::move(Err));
tools/obj2yaml/xcoff2yaml.cpp
   63       return errorToErrorCode(SymNameRefOrErr.takeError());
   72       return errorToErrorCode(SectionNameRefOrErr.takeError());
unittests/Support/ErrorTest.cpp
  443     errorToErrorCode(make_error<StringError>("", errc::invalid_argument));
  466   auto Res = errorToErrorCode(createStringError(EC, "foo%s", Bar));
  692   EXPECT_EQ(errorToErrorCode(errorCodeToError(std::error_code())),
  697   EXPECT_EQ(errorToErrorCode(errorCodeToError(errc::invalid_argument)),
unittests/Support/FileOutputBufferTest.cpp
   47     ASSERT_NO_ERROR(errorToErrorCode(BufferOrErr.takeError()));
   54     ASSERT_NO_ERROR(errorToErrorCode(Buffer->commit()));
   69     ASSERT_NO_ERROR(errorToErrorCode(Buffer2OrErr.takeError()));
   86     ASSERT_NO_ERROR(errorToErrorCode(BufferOrErr.takeError()));
   92     ASSERT_NO_ERROR(errorToErrorCode(Buffer->commit()));
  107     ASSERT_NO_ERROR(errorToErrorCode(BufferOrErr.takeError()));
  112     ASSERT_NO_ERROR(errorToErrorCode(Buffer->commit()));