[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.
This commit is contained in:
Krzysztof Parzyszek 2025-03-24 18:26:57 -05:00 committed by GitHub
parent 3ce3d889f6
commit c221d64206
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 0 additions and 13 deletions

View File

@ -159,9 +159,6 @@ public:
template <typename T> Result operator()(const Designator<T> &x) const {
return visitor_(x.u);
}
template <typename T> Result operator()(const Variable<T> &x) const {
return visitor_(x.u);
}
Result operator()(const DescriptorInquiry &x) const {
return visitor_(x.base());
}

View File

@ -44,7 +44,6 @@ using SymbolVector = std::vector<SymbolRef>;
// Forward declarations
struct DataRef;
template <typename T> struct Variable;
// Reference a base object in memory. This can be a Fortran symbol,
// static data (e.g., CHARACTER literal), or compiler-created temporary.

View File

@ -106,11 +106,6 @@ private:
Show(x.u);
Outdent();
}
template <typename T> void Show(const evaluate::Variable<T> &x) {
Indent("variable");
Show(x.u);
Outdent();
}
void Show(const evaluate::DescriptorInquiry &x);
void Show(const evaluate::SpecificIntrinsic &);
void Show(const evaluate::ProcedureDesignator &x);

View File

@ -165,10 +165,6 @@ private:
RT find(const Fortran::evaluate::Designator<T> &x) {
return find(x.u);
}
template <typename T>
RT find(const Fortran::evaluate::Variable<T> &x) {
return find(x.u);
}
RT find(const Fortran::evaluate::DescriptorInquiry &) { return {}; }
RT find(const Fortran::evaluate::SpecificIntrinsic &) { return {}; }
RT find(const Fortran::evaluate::ProcedureDesignator &x) { return {}; }