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 @@ -670,6 +670,7 @@ #endif } +#ifdef LLVM_ON_UNIX static Error createTCPSocketError(Twine Details) { return make_error( formatv("Failed to connect TCP socket '{0}': {1}", @@ -678,12 +679,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; @@ -718,8 +713,8 @@ return createTCPSocketError(std::strerror(errno)); return SockFD; -#endif } +#endif Expected> LLVMJITLinkRemoteTargetProcessControl::ConnectToExecutor() {