[llvm] Lift raw_socket_stream implementation out into own files (PR #75653)

Michael Spencer via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 16:22:49 PST 2023


================
@@ -0,0 +1,182 @@
+//===-- llvm/Support/raw_socket_stream.cpp - Socket streams --*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file contains raw_ostream implementations for streams to communicate
+// via UNIX sockets
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Support/raw_socket_stream.h"
+#include "llvm/Config/config.h"
+#include "llvm/Support/Error.h"
+#include "llvm/Support/Threading.h"
+
+#ifndef _WIN32
+#include <sys/socket.h>
+#include <sys/un.h>
+#else
+#include "llvm/Support/ConvertUTF.h"
+#include "llvm/Support/Signals.h"
----------------
Bigcheese wrote:

I don't think you need either of these.

https://github.com/llvm/llvm-project/pull/75653


More information about the llvm-commits mailing list