2024-03-17 18:39:03 -07:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: Tyler Veness <calcmogul@gmail.com>
|
|
|
|
|
Date: Sun, 17 Mar 2024 14:51:11 -0700
|
2026-05-26 21:55:50 -07:00
|
|
|
Subject: [PATCH 30/34] raw_ostream: remove auto-conversion
|
2024-03-17 18:39:03 -07:00
|
|
|
|
|
|
|
|
---
|
2026-05-26 16:25:29 -07:00
|
|
|
llvm/lib/Support/raw_ostream.cpp | 13 +------------
|
|
|
|
|
1 file changed, 1 insertion(+), 12 deletions(-)
|
2024-03-17 18:39:03 -07:00
|
|
|
|
|
|
|
|
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
|
2026-05-26 16:25:29 -07:00
|
|
|
index a9cea8ac7fa2a7edbfeb76dbed6a92e189edbbd9..21a00f58e3ed3a033a75fd5ca64d94486f9a8d42 100644
|
2024-03-17 18:39:03 -07:00
|
|
|
--- a/llvm/lib/Support/raw_ostream.cpp
|
|
|
|
|
+++ b/llvm/lib/Support/raw_ostream.cpp
|
|
|
|
|
@@ -19,7 +19,6 @@
|
2025-11-07 19:58:22 -05:00
|
|
|
#include "wpi/util/SmallVector.hpp"
|
2024-03-17 18:39:03 -07:00
|
|
|
#include "llvm/ADT/StringExtras.h"
|
|
|
|
|
#include "llvm/Config/config.h"
|
|
|
|
|
-#include "llvm/Support/AutoConvert.h"
|
|
|
|
|
#include "llvm/Support/Compiler.h"
|
|
|
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
|
|
|
#include "llvm/Support/FileSystem.h"
|
2026-05-26 16:25:29 -07:00
|
|
|
@@ -600,23 +599,13 @@ raw_fd_ostream &llvm::outs() {
|
2024-03-17 18:39:03 -07:00
|
|
|
// Set buffer settings to model stdout behavior.
|
|
|
|
|
std::error_code EC;
|
2026-05-26 16:25:29 -07:00
|
|
|
|
|
|
|
|
- // On z/OS we need to enable auto conversion
|
|
|
|
|
- static std::error_code EC1 = enableAutoConversion(STDOUT_FILENO);
|
|
|
|
|
- assert(!EC1);
|
|
|
|
|
- (void)EC1;
|
|
|
|
|
-
|
2024-03-17 18:39:03 -07:00
|
|
|
static raw_fd_ostream* S = new raw_fd_ostream("-", EC, sys::fs::OF_None);
|
|
|
|
|
assert(!EC);
|
|
|
|
|
return *S;
|
2024-12-24 17:40:31 -08:00
|
|
|
}
|
2024-03-17 18:39:03 -07:00
|
|
|
|
|
|
|
|
raw_fd_ostream &llvm::errs() {
|
2026-05-26 16:25:29 -07:00
|
|
|
- // On z/OS we need to enable auto conversion
|
|
|
|
|
- static std::error_code EC = enableAutoConversion(STDERR_FILENO);
|
2024-03-17 18:39:03 -07:00
|
|
|
- assert(!EC);
|
2026-05-26 16:25:29 -07:00
|
|
|
- (void)EC;
|
|
|
|
|
-
|
|
|
|
|
- // Set standard error to be unbuffered.
|
2024-12-24 17:40:31 -08:00
|
|
|
+ // Set standard error to be unbuffered and tied to outs() by default.
|
2024-03-17 18:39:03 -07:00
|
|
|
static raw_fd_ostream* S = new raw_fd_ostream(STDERR_FILENO, false, true);
|
|
|
|
|
return *S;
|
|
|
|
|
}
|