Jon Ross-Perkins and Geoff Romer
4c4c4a4d2c
Add RawStringOstream for slightly simpler streaming to strings ( #4817 )
...
This adds a RawStringOstream. Versus TestRawOstream, which is
consolidated over to RawStringOstream, it uses a string for storage
instead of a vector, mainly to support move-to-string semantics. Versus
llvm::raw_string_ostream, it owns the string and supports pwrite (which
is needed for driver and its fd_ostream compatibility requirement).
This converts most uses of llvm::raw_string_ostream, leaving behind a
few in InstNamer that explicitly cannot own the string, such as:
```
llvm::raw_string_ostream(name)
<< "_" << tree.tokens().GetColumnNumber(token);
```
I have this as its own library so that it can use CHECK.
Yes this doesn't save much code, but it's code we repeatedly write.
---------
Co-authored-by: Geoff Romer <gromer@google.com >
2025-01-18 01:11:44 +00:00
..
2024-05-21 20:33:20 +00:00
2025-01-17 17:51:34 +00:00
2025-01-18 01:11:44 +00:00
2024-12-10 03:00:28 +00:00
2024-09-05 23:39:58 +00:00
2024-11-18 22:28:57 +00:00
2025-01-15 21:27:58 +00:00
2025-01-14 20:45:50 +00:00
2025-01-14 20:45:50 +00:00
2025-01-14 20:45:50 +00:00
2025-01-17 17:51:34 +00:00
2025-01-17 17:51:34 +00:00
2025-01-09 22:46:22 +00:00
2024-12-05 18:13:46 +00:00
2025-01-17 17:51:34 +00:00
2025-01-13 18:55:26 +00:00
2025-01-08 08:36:14 +00:00
2024-12-11 22:34:10 +00:00
2024-10-08 22:17:37 +00:00
2024-11-20 20:58:58 +00:00
2024-11-20 20:58:58 +00:00
2024-10-07 22:55:26 +00:00
2025-01-06 17:26:28 +00:00
2025-01-17 17:51:34 +00:00
2024-12-11 22:34:10 +00:00
2025-01-17 17:51:34 +00:00
2024-12-10 20:56:37 +00:00
2024-12-10 03:00:28 +00:00
2024-07-03 16:58:47 +00:00
2024-07-03 16:58:47 +00:00
2025-01-02 23:03:11 +00:00
2025-01-02 23:03:11 +00:00
2024-12-04 00:21:24 +00:00
2024-07-03 17:49:47 +00:00
2025-01-10 22:11:07 +00:00
2024-12-05 22:07:51 +00:00
2025-01-17 17:51:34 +00:00
2024-12-02 18:51:44 +00:00
2024-07-12 22:38:06 +00:00
2025-01-16 20:19:22 +00:00
2024-07-12 22:38:06 +00:00
2025-01-10 22:11:07 +00:00
2024-07-12 22:38:06 +00:00
2024-07-12 22:38:06 +00:00
2025-01-16 20:19:22 +00:00
2024-12-19 21:41:06 +00:00
2024-12-19 21:41:06 +00:00
2025-01-17 17:51:34 +00:00
2024-08-19 22:12:21 +00:00
2024-12-05 22:07:51 +00:00
2025-01-14 21:13:21 +00:00
2025-01-17 17:51:34 +00:00
2024-12-05 22:07:51 +00:00
2024-12-19 21:41:06 +00:00
2024-07-12 22:38:06 +00:00
2025-01-17 17:51:34 +00:00
2025-01-17 17:51:34 +00:00
2024-07-12 22:38:06 +00:00
2025-01-10 22:11:07 +00:00
2024-12-18 00:19:12 +00:00
2025-01-07 17:44:34 +00:00
2024-07-12 22:38:06 +00:00
2025-01-15 22:12:22 +00:00
2024-07-12 22:38:06 +00:00
2024-12-05 18:13:46 +00:00
2024-07-12 22:38:06 +00:00
2024-12-05 18:13:46 +00:00
2024-07-12 22:38:06 +00:00
2025-01-02 23:03:11 +00:00
2025-01-02 23:03:11 +00:00
2025-01-11 01:59:06 +00:00
2025-01-11 01:59:06 +00:00
2025-01-18 01:11:44 +00:00
2025-01-15 21:27:58 +00:00
2025-01-16 20:19:22 +00:00
2024-12-04 21:38:19 +00:00
2025-01-14 17:34:33 +00:00
2024-07-24 19:56:17 +00:00
2024-11-07 16:22:36 +00:00
2025-01-10 22:11:07 +00:00
2024-12-05 18:13:46 +00:00
2024-02-28 01:56:27 +00:00
2025-01-17 17:51:34 +00:00
2024-11-04 04:00:17 +00:00
2024-12-05 22:07:51 +00:00
2024-12-03 18:46:27 +00:00
2025-01-08 19:08:56 +00:00
2024-10-07 17:25:35 +00:00
2025-01-14 21:13:21 +00:00
2025-01-14 21:13:21 +00:00
2024-10-17 22:47:40 +00:00
2024-10-17 22:47:40 +00:00
2025-01-17 17:51:34 +00:00
2025-01-10 22:11:07 +00:00
2024-11-20 20:58:58 +00:00
2024-11-20 20:58:58 +00:00
2024-11-07 16:22:36 +00:00
2025-01-17 17:51:34 +00:00
2024-12-05 18:13:46 +00:00
2024-10-07 17:25:35 +00:00
2024-12-17 01:25:53 +00:00
2025-01-17 17:51:34 +00:00
2025-01-17 17:51:34 +00:00
2024-08-29 21:10:14 +00:00
2024-12-04 18:40:50 +00:00
2024-03-18 17:40:00 +00:00
2025-01-17 17:51:34 +00:00
2025-01-17 17:51:34 +00:00
2025-01-13 18:55:26 +00:00
2025-01-13 18:55:26 +00:00
2025-01-17 17:51:34 +00:00
2025-01-18 01:11:44 +00:00
2025-01-10 18:36:24 +00:00
2024-12-17 21:20:37 +00:00
2024-08-09 01:05:03 +00:00