[flang-commits] [flang] [flang][runtime] Added pseudo file unit for simplified PRINT. (PR #86134)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Thu Mar 21 12:41:53 PDT 2024


================
@@ -0,0 +1,170 @@
+//===-- runtime/pseudo-unit.cpp -------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+//
+// Implemenation of ExternalFileUnit and PseudoOpenFile for
+// RT_USE_PSEUDO_FILE_UNIT=1.
+//
+//===----------------------------------------------------------------------===//
+
+#include "io-error.h"
+#include "tools.h"
+#include "unit.h"
+#include <cstdio>
+
+#if defined(RT_USE_PSEUDO_FILE_UNIT)
+
+namespace Fortran::runtime::io {
+
+void FlushOutputOnCrash(const Terminator &terminator) {}
----------------
klausler wrote:

Some C++ compilers will complain about unused formal arguments; I suggest removing their names, here and below.

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


More information about the flang-commits mailing list