aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-06-28 16:16:08 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-07-07 13:46:54 +0000
commite4647c3f3431ad3a4123874e4fd932bb4fbcda0d (patch)
tree4d2a62f9deae42cf876e88c3d76d2cc9a882e578
parent241fcaeb554c2e6883cb6a321f948bf9a2ff225a (diff)
downloadgcc-e4647c3f3431ad3a4123874e4fd932bb4fbcda0d.zip
gcc-e4647c3f3431ad3a4123874e4fd932bb4fbcda0d.tar.gz
gcc-e4647c3f3431ad3a4123874e4fd932bb4fbcda0d.tar.bz2
collector: Fix abi output
Abi did output as several tokens instead of a fixed string. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Fix abit output format. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r--gcc/rust/ast/rust-ast-collector.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc
index f1306e7..fcd9521 100644
--- a/gcc/rust/ast/rust-ast-collector.cc
+++ b/gcc/rust/ast/rust-ast-collector.cc
@@ -366,10 +366,8 @@ TokenCollector::visit (FunctionQualifiers &qualifiers)
push (Rust::Token::make (EXTERN_TOK, qualifiers.get_locus ()));
if (qualifiers.has_abi ())
{
- push (Rust::Token::make (DOUBLE_QUOTE, Location ()));
- auto abi = qualifiers.get_extern_abi ();
- push (Rust::Token::make_identifier (Location (), std::move (abi)));
- push (Rust::Token::make (DOUBLE_QUOTE, Location ()));
+ push (Rust::Token::make_string (Location (),
+ qualifiers.get_extern_abi ()));
}
}
}