aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-07-10 20:15:19 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:56:03 +0100
commit886d56d0c54ec73cabae64558f63e7963c9bb90a (patch)
treec58028f0592ddf234687b68796bc8436a8015118 /gcc/rust/rust-gcc.cc
parent9cc353d75ab97a4461c707d504e595fc3a8e2ecc (diff)
downloadgcc-886d56d0c54ec73cabae64558f63e7963c9bb90a.zip
gcc-886d56d0c54ec73cabae64558f63e7963c9bb90a.tar.gz
gcc-886d56d0c54ec73cabae64558f63e7963c9bb90a.tar.bz2
gccrs: Remove Location typedef
gcc/rust/ChangeLog: * rust-location.h (typedef Location): Remove. * expand/rust-proc-macro.cc (register_callback): Replace Location constructor with UNDEF_LOCATION. * ast/rust-ast-collector.h: Replace Location with location_t. * checks/errors/privacy/rust-privacy-reporter.cc: Likewise. * checks/errors/privacy/rust-privacy-reporter.h: Likewise. * checks/errors/privacy/rust-pub-restricted-visitor.cc: Likewise. * checks/errors/privacy/rust-pub-restricted-visitor.h: Likewise. * checks/errors/rust-feature-gate.cc: Likewise. * checks/errors/rust-feature-gate.h: Likewise. * metadata/rust-imports.h: Likewise. * resolve/rust-ast-resolve-path.h: Likewise. * resolve/rust-name-resolver.h: Likewise. * rust-backend.h: Likewise. * rust-diagnostics.h: Likewise. * rust-gcc.cc: Likewise. * rust-linemap.h: Likewise. * util/rust-attributes.cc: Likewise. * util/rust-hir-map.cc: Likewise. * util/rust-hir-map.h: Likewise. * util/rust-token-converter.cc: Likewise. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r--gcc/rust/rust-gcc.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index 119b02d..a6a67bb 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -186,7 +186,8 @@ public:
tree arithmetic_or_logical_expression_checked (ArithmeticOrLogicalOperator op,
tree left, tree right,
- Location, Bvariable *receiver);
+ location_t,
+ Bvariable *receiver);
tree comparison_expression (ComparisonOperator op, tree left, tree right,
location_t);
@@ -231,7 +232,7 @@ public:
// Blocks.
- tree block (tree, tree, const std::vector<Bvariable *> &, Location,
+ tree block (tree, tree, const std::vector<Bvariable *> &, location_t,
location_t);
void block_add_statements (tree, const std::vector<tree> &);
@@ -255,7 +256,7 @@ public:
Bvariable *static_chain_variable (tree, const std::string &, tree,
location_t);
- Bvariable *temporary_variable (tree, tree, tree, tree, bool, Location,
+ Bvariable *temporary_variable (tree, tree, tree, tree, bool, location_t,
tree *);
// Labels.
@@ -783,7 +784,7 @@ Gcc_backend::function_type_varadic (
tree
Gcc_backend::function_ptr_type (tree result_type,
const std::vector<tree> &parameters,
- Location /* locus */)
+ location_t /* locus */)
{
tree args = NULL_TREE;
tree *pp = &args;
@@ -2084,7 +2085,7 @@ Gcc_backend::statement_list (const std::vector<tree> &statements)
tree
Gcc_backend::block (tree fndecl, tree enclosing,
const std::vector<Bvariable *> &vars,
- Location start_location, location_t)
+ location_t start_location, location_t)
{
tree block_tree = make_node (BLOCK);
if (enclosing == NULL)