[NFC][flang][runtime] Moved freestanding-tools.h to use it in FortranDecimal. (#87827)
I will add `toupper` implementation into it in the next PR.
This commit is contained in:
parent
42a6ad7bad
commit
3b337242ee
@ -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.
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user