diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp --- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp +++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp @@ -669,6 +669,7 @@ #endif } +#ifdef LLVM_ON_UNIX static Error createTCPSocketError(Twine Details) { return make_error( formatv("Failed to connect TCP socket '{0}': {1}", @@ -677,12 +678,6 @@ } static Expected connectTCPSocket(std::string Host, std::string PortStr) { -#ifndef LLVM_ON_UNIX - // FIXME: Add TCP support for Windows. - return make_error("-" + OutOfProcessExecutorConnect.ArgStr + - " not supported on non-unix platforms", - inconvertibleErrorCode()); -#else addrinfo *AI; addrinfo Hints{}; Hints.ai_family = AF_INET; @@ -717,8 +712,8 @@ return createTCPSocketError(std::strerror(errno)); return SockFD; -#endif } +#endif Expected> LLVMJITLinkRemoteTargetProcessControl::ConnectToExecutor() {