Skip to content

Commit 0f8c824

Browse files
committed
Remove unused AST classes
1 parent 525f12f commit 0f8c824

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

flang/include/flang/Parser/dump-parse-tree.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,6 @@ class ParseTreeDumper {
538538
NODE_ENUM(OmpCloseModifier, Value)
539539
NODE(parser, OmpContainsClause)
540540
NODE(parser, OmpContextSelectorSpecification)
541-
NODE(parser, OmpDeclareTargetSpecifier)
542-
NODE(parser, OmpDeclareTargetWithClause)
543-
NODE(parser, OmpDeclareTargetWithList)
544541
NODE(parser, OmpDeclareVariantDirective)
545542
NODE(parser, OmpDefaultClause)
546543
NODE_ENUM(OmpDefaultClause, DataSharingAttribute)

flang/include/flang/Parser/parse-tree.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4943,24 +4943,6 @@ struct OmpDeclareVariantDirective {
49434943
CharBlock source;
49444944
};
49454945

4946-
// 2.10.6 declare-target -> DECLARE TARGET (extended-list) |
4947-
// DECLARE TARGET [declare-target-clause[ [,]
4948-
// declare-target-clause]...]
4949-
struct OmpDeclareTargetWithList {
4950-
WRAPPER_CLASS_BOILERPLATE(OmpDeclareTargetWithList, OmpObjectList);
4951-
CharBlock source;
4952-
};
4953-
4954-
struct OmpDeclareTargetWithClause {
4955-
WRAPPER_CLASS_BOILERPLATE(OmpDeclareTargetWithClause, OmpClauseList);
4956-
CharBlock source;
4957-
};
4958-
4959-
struct OmpDeclareTargetSpecifier {
4960-
UNION_CLASS_BOILERPLATE(OmpDeclareTargetSpecifier);
4961-
std::variant<OmpDeclareTargetWithList, OmpDeclareTargetWithClause> u;
4962-
};
4963-
49644946
// Ref: [4.5:110-113], [5.0:180-185], [5.1:210-216], [5.2:206-207],
49654947
// [6.0:346-348]
49664948
//

flang/lib/Parser/unparse.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2492,9 +2492,6 @@ class UnparseVisitor {
24922492
void Unparse(const OpenMPCriticalConstruct &x) {
24932493
Unparse(static_cast<const OmpBlockConstruct &>(x));
24942494
}
2495-
void Unparse(const OmpDeclareTargetWithList &x) {
2496-
Put("("), Walk(x.v), Put(")");
2497-
}
24982495
void Unparse(const OmpInitializerProc &x) {
24992496
Walk(std::get<ProcedureDesignator>(x.t));
25002497
Put("(");

0 commit comments

Comments
 (0)