mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tyler Veness <calcmogul@gmail.com>
|
|
Date: Fri, 1 Mar 2024 11:37:36 -0800
|
|
Subject: [PATCH 33/36] Add back removed raw_string_ostream::write_impl()
|
|
|
|
---
|
|
llvm/lib/Support/raw_ostream.cpp | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
|
|
index 8fe686142b8cdba76287a3b8b97569fde922f2bf..9134f3d3db220ec5afb87b72cb9aed76c52a80ca 100644
|
|
--- a/llvm/lib/Support/raw_ostream.cpp
|
|
+++ b/llvm/lib/Support/raw_ostream.cpp
|
|
@@ -656,6 +656,14 @@ bool raw_fd_stream::classof(const raw_ostream *OS) {
|
|
return OS->get_kind() == OStreamKind::OK_FDStream;
|
|
}
|
|
|
|
+//===----------------------------------------------------------------------===//
|
|
+// raw_string_ostream
|
|
+//===----------------------------------------------------------------------===//
|
|
+
|
|
+void raw_string_ostream::write_impl(const char *Ptr, size_t Size) {
|
|
+ OS.append(Ptr, Size);
|
|
+}
|
|
+
|
|
//===----------------------------------------------------------------------===//
|
|
// raw_svector_ostream
|
|
//===----------------------------------------------------------------------===//
|