Skip to content

Commit c4faf05

Browse files
committed
iostat.h -> iostat-consts.h
1 parent bd392d2 commit c4faf05

File tree

8 files changed

+16
-13
lines changed

8 files changed

+16
-13
lines changed

flang/include/flang/Optimizer/Builder/IntrinsicCall.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "flang/Optimizer/Builder/Runtime/Numeric.h"
1717
#include "flang/Optimizer/Builder/Runtime/RTBuilder.h"
1818
#include "flang/Runtime/entry-names.h"
19-
#include "flang/Runtime/iostat.h"
19+
#include "flang/Runtime/iostat-consts.h"
2020
#include "mlir/Dialect/Complex/IR/Complex.h"
2121
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
2222
#include "mlir/Dialect/Math/IR/Math.h"

flang/include/flang/Runtime/array-constructor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ struct ArrayConstructorVector {
4343
private:
4444
unsigned char useValueLengthParameters_ : 1;
4545
};
46+
4647
static_assert(sizeof(Fortran::runtime::ArrayConstructorVector) <=
4748
MaxArrayConstructorVectorSizeInBytes,
4849
"ABI requires sizeof(ArrayConstructorVector) to be smaller than "

flang/include/flang/Runtime/io-api-consts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "flang/Common/uint128.h"
1515
#include "flang/Runtime/entry-names.h"
16-
#include "flang/Runtime/iostat.h"
16+
#include "flang/Runtime/iostat-consts.h"
1717
#include "flang/Runtime/magic-numbers.h"
1818
#include <cinttypes>
1919
#include <cstddef>

flang/include/flang/Runtime/io-api.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang/Runtime/io-api-funcs.h --------------------*- C++ -*-===//
1+
//===-- include/flang/Runtime/io-api.h --------------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -14,7 +14,7 @@
1414
#include "flang/Common/uint128.h"
1515
#include "flang/Runtime/entry-names.h"
1616
#include "flang/Runtime/io-api-consts.h"
17-
#include "flang/Runtime/iostat.h"
17+
#include "flang/Runtime/iostat-consts.h"
1818
#include "flang/Runtime/magic-numbers.h"
1919
#include <cinttypes>
2020
#include <cstddef>
@@ -36,5 +36,4 @@ RT_API_ATTRS const char *InquiryKeywordHashDecode(
3636
char *buffer, std::size_t, InquiryKeywordHash);
3737

3838
} // namespace Fortran::runtime::io
39-
40-
#endif /* FORTRAN_RUNTIME_IO_API_H_ */
39+
#endif

flang/include/flang/Runtime/iostat.h renamed to flang/include/flang/Runtime/iostat-consts.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang/Runtime/iostat.h --------------------------*- C++ -*-===//
1+
//===-- include/flang/Runtime/iostat-consts.h -------------------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -9,10 +9,12 @@
99
// Defines the values returned by the runtime for IOSTAT= specifiers
1010
// on I/O statements.
1111

12-
#ifndef FORTRAN_RUNTIME_IOSTAT_H_
13-
#define FORTRAN_RUNTIME_IOSTAT_H_
12+
#ifndef FORTRAN_RUNTIME_IOSTAT_CONSTS_H_
13+
#define FORTRAN_RUNTIME_IOSTAT_CONSTS_H_
14+
1415
#include "flang/Common/api-attrs.h"
1516
#include "flang/Runtime/magic-numbers.h"
17+
1618
namespace Fortran::runtime::io {
1719

1820
// The value of IOSTAT= is zero when no error, end-of-record,
@@ -90,4 +92,5 @@ enum Iostat {
9092
};
9193

9294
} // namespace Fortran::runtime::io
93-
#endif // FORTRAN_RUNTIME_IOSTAT_H_
95+
96+
#endif // FORTRAN_RUNTIME_IOSTAT_CONSTS_H_

flang/include/flang/Runtime/iostat-funcs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define FORTRAN_RUNTIME_IOSTAT_FUNCS_H_
1414

1515
#include "flang/Common/api-attrs.h"
16-
#include "flang/Runtime/iostat.h"
16+
#include "flang/Runtime/iostat-consts.h"
1717

1818
namespace Fortran::runtime::io {
1919

flang/lib/Lower/Bridge.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#include "flang/Optimizer/Support/InternalNames.h"
5757
#include "flang/Optimizer/Transforms/Passes.h"
5858
#include "flang/Parser/parse-tree.h"
59-
#include "flang/Runtime/iostat.h"
59+
#include "flang/Runtime/iostat-consts.h"
6060
#include "flang/Semantics/runtime-type-info.h"
6161
#include "flang/Semantics/symbol.h"
6262
#include "flang/Semantics/tools.h"

flang/lib/Optimizer/Builder/IntrinsicCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#include "flang/Optimizer/Support/FatalError.h"
4242
#include "flang/Optimizer/Support/Utils.h"
4343
#include "flang/Runtime/entry-names.h"
44-
#include "flang/Runtime/iostat.h"
44+
#include "flang/Runtime/iostat-consts.h"
4545
#include "mlir/Dialect/Complex/IR/Complex.h"
4646
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
4747
#include "mlir/Dialect/Math/IR/Math.h"

0 commit comments

Comments
 (0)