[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
This commit is contained in:
parent
1ce846be04
commit
59f213c162
|
|
@ -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())}) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue