[flang-commits] [flang] 59f213c - [flang] Fix static build of flang
peter klausler via flang-commits
flang-commits at lists.llvm.org
Fri Mar 12 17:39:11 PST 2021
Author: peter klausler
Date: 2021-03-12T17:38:29-08:00
New Revision: 59f213c162a43e09bb71bc7a413a1b72c4fddc03
URL: https://github.com/llvm/llvm-project/commit/59f213c162a43e09bb71bc7a413a1b72c4fddc03
DIFF: https://github.com/llvm/llvm-project/commit/59f213c162a43e09bb71bc7a413a1b72c4fddc03.diff
LOG: [flang] Fix static build of flang
An older version of a function (Fortran::semantics::FindFunctionResult) was
left in flang/lib/Semantics/tools.cpp, and this breaks the static library
build due to a conflict with the intended final version in another
file and library. Remove the old code.
Differential Revision: https://reviews.llvm.org/D98568
Added:
Modified:
flang/lib/Semantics/tools.cpp
Removed:
################################################################################
diff --git a/flang/lib/Semantics/tools.cpp b/flang/lib/Semantics/tools.cpp
index 7680d67a5cc4..2d7fa9de9392 100644
--- a/flang/lib/Semantics/tools.cpp
+++ b/flang/lib/Semantics/tools.cpp
@@ -434,17 +434,6 @@ const Symbol *FindSubprogram(const Symbol &symbol) {
symbol.details());
}
-const Symbol *FindFunctionResult(const Symbol &symbol) {
- if (const Symbol * subp{FindSubprogram(symbol)}) {
- if (const auto &subpDetails{subp->detailsIf<SubprogramDetails>()}) {
- if (subpDetails->isFunction()) {
- return &subpDetails->result();
- }
- }
- }
- return nullptr;
-}
-
const Symbol *FindOverriddenBinding(const Symbol &symbol) {
if (symbol.has<ProcBindingDetails>()) {
if (const DeclTypeSpec * parentType{FindParentTypeSpec(symbol.owner())}) {
More information about the flang-commits
mailing list