Skip to content

Commit c221d64

Browse files
authored
[flang] Remove mentions of evaluate::Variable<T> (#132805)
The template itself was not defined anywhere. The closest thing was a forward declaration in flang/include/flang/Evaluate/variable.h.
1 parent 3ce3d88 commit c221d64

File tree

4 files changed

+0
-13
lines changed

4 files changed

+0
-13
lines changed

flang/include/flang/Evaluate/traverse.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ class Traverse {
159159
template <typename T> Result operator()(const Designator<T> &x) const {
160160
return visitor_(x.u);
161161
}
162-
template <typename T> Result operator()(const Variable<T> &x) const {
163-
return visitor_(x.u);
164-
}
165162
Result operator()(const DescriptorInquiry &x) const {
166163
return visitor_(x.base());
167164
}

flang/include/flang/Evaluate/variable.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ using SymbolVector = std::vector<SymbolRef>;
4444

4545
// Forward declarations
4646
struct DataRef;
47-
template <typename T> struct Variable;
4847

4948
// Reference a base object in memory. This can be a Fortran symbol,
5049
// static data (e.g., CHARACTER literal), or compiler-created temporary.

flang/include/flang/Semantics/dump-expr.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ class DumpEvaluateExpr {
106106
Show(x.u);
107107
Outdent();
108108
}
109-
template <typename T> void Show(const evaluate::Variable<T> &x) {
110-
Indent("variable");
111-
Show(x.u);
112-
Outdent();
113-
}
114109
void Show(const evaluate::DescriptorInquiry &x);
115110
void Show(const evaluate::SpecificIntrinsic &);
116111
void Show(const evaluate::ProcedureDesignator &x);

flang/lib/Lower/IterationSpace.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,6 @@ class ArrayBaseFinder {
165165
RT find(const Fortran::evaluate::Designator<T> &x) {
166166
return find(x.u);
167167
}
168-
template <typename T>
169-
RT find(const Fortran::evaluate::Variable<T> &x) {
170-
return find(x.u);
171-
}
172168
RT find(const Fortran::evaluate::DescriptorInquiry &) { return {}; }
173169
RT find(const Fortran::evaluate::SpecificIntrinsic &) { return {}; }
174170
RT find(const Fortran::evaluate::ProcedureDesignator &x) { return {}; }

0 commit comments

Comments
 (0)