[PATCH] D98568: [flang] Fix static build of flang
Peter Klausler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 12 17:21:21 PST 2021
klausler created this revision.
klausler added a reviewer: tskeith.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98568
Files:
flang/lib/Semantics/tools.cpp
Index: flang/lib/Semantics/tools.cpp
===================================================================
--- flang/lib/Semantics/tools.cpp
+++ flang/lib/Semantics/tools.cpp
@@ -434,17 +434,6 @@
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())}) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98568.330404.patch
Type: text/x-patch
Size: 720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210313/421b8fdc/attachment.bin>
More information about the llvm-commits
mailing list