diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-10 20:15:19 -0400 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-07-29 16:03:44 +0000 |
commit | 611457431b37f8902e6947c3b7845256ad5d5302 (patch) | |
tree | 0cf12a9b7fd9edd9d36b4db0e9e2c309c4286dbd /gcc/rust/rust-gcc.cc | |
parent | 69f6bc9c913b00758ba66c4f9495caf720941875 (diff) | |
download | gcc-611457431b37f8902e6947c3b7845256ad5d5302.zip gcc-611457431b37f8902e6947c3b7845256ad5d5302.tar.gz gcc-611457431b37f8902e6947c3b7845256ad5d5302.tar.bz2 |
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.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc index ebdc6be..a947df7 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> ¶meters, - 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) |