aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/FrontendTool
diff options
context:
space:
mode:
authorAndrzej Warzynski <andrzej.warzynski@arm.com>2021-01-19 14:24:20 +0000
committerAndrzej Warzynski <andrzej.warzynski@arm.com>2021-01-19 17:47:40 +0000
commitcea3abc26f7cbc4ec4cf4cf73b4cce5f926420a9 (patch)
treebec3209b69e43e4333656006e5ea861e0cac6bda /flang/lib/FrontendTool
parent71b6b010e6bc49caaec511195e33ac1f43f07c64 (diff)
downloadllvm-cea3abc26f7cbc4ec4cf4cf73b4cce5f926420a9.zip
llvm-cea3abc26f7cbc4ec4cf4cf73b4cce5f926420a9.tar.gz
llvm-cea3abc26f7cbc4ec4cf4cf73b4cce5f926420a9.tar.bz2
[flang][driver] Move isFixedFormSuffix and isFreeFormSuffix to flangFrontend
isFixedFormSuffix and isFreeFormSuffix should be defined in flangFrontend rather than flangFrontendTool library. That's for 2 reasons: * these methods are used in flangFrontend rather than flangFrontendTool * flangFrontendTool depends on flangFrontend As mentioned in the post-commit review for D94228, without this change shared library builds fail. Differential Revision: https://reviews.llvm.org/D94968
Diffstat (limited to 'flang/lib/FrontendTool')
-rw-r--r--flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index 6bc63b0..50c9fca 100644
--- a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -84,19 +84,4 @@ bool ExecuteCompilerInvocation(CompilerInstance *flang) {
return success;
}
-bool isFixedFormSuffix(llvm::StringRef suffix) {
- // Note: Keep this list in-sync with flang/test/lit.cfg.py
- return suffix == "f" || suffix == "F" || suffix == "ff" || suffix == "for" ||
- suffix == "FOR" || suffix == "fpp" || suffix == "FPP";
-}
-
-bool isFreeFormSuffix(llvm::StringRef suffix) {
- // Note: Keep this list in-sync with flang/test/lit.cfg.py
- // TODO: Add Cuda Fortan files (i.e. `*.cuf` and `*.CUF`).
- return suffix == "f77" || suffix == "f90" || suffix == "F90" ||
- suffix == "ff90" || suffix == "f95" || suffix == "F95" ||
- suffix == "ff95" || suffix == "f03" || suffix == "F03" ||
- suffix == "f08" || suffix == "F08" || suffix == "f18" || suffix == "F18";
-}
-
} // namespace Fortran::frontend