aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-07-11 23:39:12 +0200
committerPhilip Herron <philip.herron@embecosm.com>2021-07-12 10:50:45 +0100
commit876f70e905ac30e9517bd99d8ed898a16191c1c5 (patch)
tree96cc03434a7d05ae1c6e7c705c9ff07f71f7922c /gcc
parente1e14958a90397a1ed6ab7236dc5a6f1c2f22505 (diff)
downloadgcc-876f70e905ac30e9517bd99d8ed898a16191c1c5.zip
gcc-876f70e905ac30e9517bd99d8ed898a16191c1c5.tar.gz
gcc-876f70e905ac30e9517bd99d8ed898a16191c1c5.tar.bz2
Remove HIR MacroItem and other hir macro forward declarations
Almost all HIR Macro related trees were already removed by https://github.com/Rust-GCC/gccrs/pull/492 But there was still one MacroItem class left in rust-hir.h and several (unused) forward declarations in various other hir .h files. Remove them all. Resolves: https://github.com/Rust-GCC/gccrs/issues/69
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/hir/tree/rust-hir-expr.h3
-rw-r--r--gcc/rust/hir/tree/rust-hir-item.h3
-rw-r--r--gcc/rust/hir/tree/rust-hir-pattern.h2
-rw-r--r--gcc/rust/hir/tree/rust-hir-type.h3
-rw-r--r--gcc/rust/hir/tree/rust-hir.h11
5 files changed, 0 insertions, 22 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-expr.h b/gcc/rust/hir/tree/rust-hir-expr.h
index 681ccf8..2b1e938 100644
--- a/gcc/rust/hir/tree/rust-hir-expr.h
+++ b/gcc/rust/hir/tree/rust-hir-expr.h
@@ -3094,9 +3094,6 @@ protected:
}
};
-// Forward decl - defined in rust-macro.h
-class MacroInvocation;
-
// An unsafe block HIR node
class UnsafeBlockExpr : public ExprWithBlock
{
diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h
index 10b1f61..e7e110f 100644
--- a/gcc/rust/hir/tree/rust-hir-item.h
+++ b/gcc/rust/hir/tree/rust-hir-item.h
@@ -3020,9 +3020,6 @@ protected:
}*/
};
-// Replaced with forward decls - defined in "rust-macro.h"
-class MacroItem;
-class MacroRulesDefinition;
} // namespace HIR
} // namespace Rust
diff --git a/gcc/rust/hir/tree/rust-hir-pattern.h b/gcc/rust/hir/tree/rust-hir-pattern.h
index 27cba7d..ac7155d 100644
--- a/gcc/rust/hir/tree/rust-hir-pattern.h
+++ b/gcc/rust/hir/tree/rust-hir-pattern.h
@@ -1152,8 +1152,6 @@ class PathPattern;
class PathInExpression;
class QualifiedPathInExpression;
-// Replaced with forward decl - defined in rust-macro.h
-class MacroInvocation;
} // namespace HIR
} // namespace Rust
diff --git a/gcc/rust/hir/tree/rust-hir-type.h b/gcc/rust/hir/tree/rust-hir-type.h
index 42fccb5..c4771b6 100644
--- a/gcc/rust/hir/tree/rust-hir-type.h
+++ b/gcc/rust/hir/tree/rust-hir-type.h
@@ -907,9 +907,6 @@ protected:
}
};
-// Forward decl - defined in rust-macro.h
-class MacroInvocation;
-
/* TODO: possible types
* struct type?
* "enum" (tagged union) type?
diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h
index 1819d17..7d53feb 100644
--- a/gcc/rust/hir/tree/rust-hir.h
+++ b/gcc/rust/hir/tree/rust-hir.h
@@ -613,17 +613,6 @@ protected:
}
};
-// A macro item HIR node - potentially abstract base class
-class MacroItem : public Item
-{
- /*public:
- std::string as_string() const;*/
-protected:
- MacroItem (Analysis::NodeMapping mappings, AST::AttrVec outer_attribs)
- : Item (std::move (mappings), std::move (outer_attribs))
- {}
-};
-
// Item used in trait declarations - abstract base class
class TraitItem
{