aboutsummaryrefslogtreecommitdiff
path: root/flang/unittests
diff options
context:
space:
mode:
authorSlava Zakharin <szakharin@nvidia.com>2023-08-22 18:13:04 -0700
committerSlava Zakharin <szakharin@nvidia.com>2023-08-22 18:56:27 -0700
commit668f261bfa53d6f9cd9131ca6b1079ec940ab81b (patch)
treeb7c4c99a44dbfc12f4b753f2792ff693e87dcb58 /flang/unittests
parentba52a10fca6fc7b791894c584233db012def68a5 (diff)
downloadllvm-668f261bfa53d6f9cd9131ca6b1079ec940ab81b.zip
llvm-668f261bfa53d6f9cd9131ca6b1079ec940ab81b.tar.gz
llvm-668f261bfa53d6f9cd9131ca6b1079ec940ab81b.tar.bz2
[flang] Make ISO_Fortran_binding.h a standalone header again.
This implements the proposal from https://discourse.llvm.org/t/adding-flang-specific-header-files-to-clang/72442/6 Since ISO_Fortran_binding.h is supposed to be included from users' C/C++ codes, it would better have no dependencies on other header files. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D158549
Diffstat (limited to 'flang/unittests')
-rw-r--r--flang/unittests/Evaluate/ISO-Fortran-binding.cpp2
-rw-r--r--flang/unittests/Runtime/TemporaryStack.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/flang/unittests/Evaluate/ISO-Fortran-binding.cpp b/flang/unittests/Evaluate/ISO-Fortran-binding.cpp
index d356d19..09a51e6 100644
--- a/flang/unittests/Evaluate/ISO-Fortran-binding.cpp
+++ b/flang/unittests/Evaluate/ISO-Fortran-binding.cpp
@@ -1,5 +1,5 @@
#include "testing.h"
-#include "flang/ISO_Fortran_binding.h"
+#include "flang/ISO_Fortran_binding_wrapper.h"
#include "flang/Runtime/descriptor.h"
#include "llvm/Support/raw_ostream.h"
#include <type_traits>
diff --git a/flang/unittests/Runtime/TemporaryStack.cpp b/flang/unittests/Runtime/TemporaryStack.cpp
index 8ca5a27..0a93449 100644
--- a/flang/unittests/Runtime/TemporaryStack.cpp
+++ b/flang/unittests/Runtime/TemporaryStack.cpp
@@ -8,7 +8,7 @@
#include "gtest/gtest.h"
#include "tools.h"
-#include "flang/ISO_Fortran_binding.h"
+#include "flang/ISO_Fortran_binding_wrapper.h"
#include "flang/Runtime/allocatable.h"
#include "flang/Runtime/cpp-type.h"
#include "flang/Runtime/descriptor.h"