aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-context.h
diff options
context:
space:
mode:
authorYizhe <yizhe@pku.edu.cn>2021-02-16 07:42:32 +0000
committerPhilip Herron <herron.philip@googlemail.com>2021-02-19 10:34:59 +0000
commit68a2f3d7eaa60516a40037dadb6761e69b7863f7 (patch)
tree2bcc568d87448ada6d31da37366044f0eb6ec439 /gcc/rust/backend/rust-compile-context.h
parent642cc5ed4ffcf0a334cec450e536e5b948819271 (diff)
downloadgcc-68a2f3d7eaa60516a40037dadb6761e69b7863f7.zip
gcc-68a2f3d7eaa60516a40037dadb6761e69b7863f7.tar.gz
gcc-68a2f3d7eaa60516a40037dadb6761e69b7863f7.tar.bz2
Renamed `TyBase` to `BaseType`
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r--gcc/rust/backend/rust-compile-context.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h
index b50e103..c5ae3bb 100644
--- a/gcc/rust/backend/rust-compile-context.h
+++ b/gcc/rust/backend/rust-compile-context.h
@@ -53,7 +53,7 @@ public:
rust_assert (
tyctx->lookup_type_by_node_id ((*it)->get_node_id (), &ref));
- TyTy::TyBase *lookup;
+ TyTy::BaseType *lookup;
rust_assert (tyctx->lookup_type (ref, &lookup));
auto compiled = TyTyCompile::compile (backend, lookup);
@@ -261,7 +261,7 @@ private:
class TyTyResolveCompile : public TyTy::TyVisitor
{
public:
- static ::Btype *compile (Context *ctx, TyTy::TyBase *ty)
+ static ::Btype *compile (Context *ctx, TyTy::BaseType *ty)
{
TyTyResolveCompile compiler (ctx);
ty->accept_vis (compiler);
@@ -355,7 +355,7 @@ public:
std::vector<Backend::Btyped_identifier> fields;
for (size_t i = 0; i < type.num_fields (); i++)
{
- TyTy::TyBase *field = type.get_field (i);
+ TyTy::BaseType *field = type.get_field (i);
Btype *compiled_field_ty
= TyTyCompile::compile (ctx->get_backend (), field);