================
@@ -5199,13 +5199,13 @@ static void flush_atexit(void) {
 int main(int argc, const char **argv) {
   thread_info client_data;
 
-#ifdef __MVS__
+  // On z/OS we need to enable auto conversion
   if (enablezOSAutoConversion(fileno(stdout)) == -1)
----------------
perry-ca wrote:

I suggest defining `enableAutoConversion()` as an inline function in 
AutoConvert.h that always returns true for non z/OS platforms and for z/OS it 
calls this function.  That will allow us to:
- not add unneeded function calls in the final code.
- keep the AutoConvert.cpp strictly for z/OS.
This would go for all functions in AutoConvert.h.

https://github.com/llvm/llvm-project/pull/143174
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to