Skip to content

Commit

Permalink
[NFC][flang][runtime] Moved freestanding-tools.h to use it in Fortran…
Browse files Browse the repository at this point in the history
…Decimal. (#87827)

I will add `toupper` implementation into it in the next PR.
  • Loading branch information
vzakhari committed Apr 5, 2024
1 parent 42a6ad7 commit 3b33724
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- runtime/freestanding-tools.h ----------------------------*- C++ -*-===//
//===-- include/flang/Runtime/freestanding-tools.h --------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
2 changes: 1 addition & 1 deletion flang/runtime/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#ifndef FORTRAN_RUNTIME_BUFFER_H_
#define FORTRAN_RUNTIME_BUFFER_H_

#include "freestanding-tools.h"
#include "io-error.h"
#include "flang/Runtime/freestanding-tools.h"
#include "flang/Runtime/memory.h"
#include <algorithm>
#include <cinttypes>
Expand Down
2 changes: 1 addition & 1 deletion flang/runtime/descriptor-io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "descriptor-io.h"
#include "freestanding-tools.h"
#include "flang/Common/restorer.h"
#include "flang/Runtime/freestanding-tools.h"

namespace Fortran::runtime::io::descr {
RT_OFFLOAD_API_GROUP_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion flang/runtime/edit-input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
//===----------------------------------------------------------------------===//

#include "edit-input.h"
#include "freestanding-tools.h"
#include "namelist.h"
#include "utf.h"
#include "flang/Common/optional.h"
#include "flang/Common/real.h"
#include "flang/Common/uint128.h"
#include "flang/Runtime/freestanding-tools.h"
#include <algorithm>
#include <cfenv>

Expand Down
2 changes: 1 addition & 1 deletion flang/runtime/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
#define FORTRAN_RUNTIME_FORMAT_H_

#include "environment.h"
#include "freestanding-tools.h"
#include "io-error.h"
#include "flang/Common/Fortran.h"
#include "flang/Common/optional.h"
#include "flang/Decimal/decimal.h"
#include "flang/Runtime/freestanding-tools.h"
#include <cinttypes>

namespace Fortran::runtime {
Expand Down
2 changes: 1 addition & 1 deletion flang/runtime/internal-unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//===----------------------------------------------------------------------===//

#include "internal-unit.h"
#include "freestanding-tools.h"
#include "io-error.h"
#include "flang/Runtime/descriptor.h"
#include "flang/Runtime/freestanding-tools.h"
#include <algorithm>
#include <type_traits>

Expand Down
2 changes: 1 addition & 1 deletion flang/runtime/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//===----------------------------------------------------------------------===//

#include "flang/Runtime/memory.h"
#include "freestanding-tools.h"
#include "terminator.h"
#include "tools.h"
#include "flang/Runtime/freestanding-tools.h"
#include <cstdlib>

namespace Fortran::runtime {
Expand Down
2 changes: 1 addition & 1 deletion flang/runtime/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
#ifndef FORTRAN_RUNTIME_TOOLS_H_
#define FORTRAN_RUNTIME_TOOLS_H_

#include "freestanding-tools.h"
#include "stat.h"
#include "terminator.h"
#include "flang/Common/optional.h"
#include "flang/Runtime/cpp-type.h"
#include "flang/Runtime/descriptor.h"
#include "flang/Runtime/freestanding-tools.h"
#include "flang/Runtime/memory.h"
#include <cstring>
#include <functional>
Expand Down

0 comments on commit 3b33724

Please sign in to comment.