]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Renamed parseAsmArg to conform to other function names
authorjjasmine <tanghocle456@gmail.com>
Tue, 28 May 2024 07:17:33 +0000 (00:17 -0700)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Mar 2025 15:35:42 +0000 (16:35 +0100)
gcc/rust/ChangeLog:

* expand/rust-macro-builtins-asm.cc (parseAsmArg):
Renamed parseAsmArg to conform to other function names
(parse_asm_arg): Likewise.
(parse_asm): Likewise.
* expand/rust-macro-builtins-asm.h (parseAsmArg): Likewise.
(parse_asm_arg): Likewise.

gcc/rust/expand/rust-macro-builtins-asm.cc
gcc/rust/expand/rust-macro-builtins-asm.h

index f7703ddd7303ff194c94f82390ec46b5ac1857b1..3ce9bf9d78bea61f6a0bf0788f65e31587e9ae9a 100644 (file)
@@ -385,8 +385,8 @@ MacroBuiltin::asm_handler (location_t invoc_locus, AST::MacroInvocData &invoc,
 }
 
 int
-parseAsmArg (Parser<MacroInvocLexer> &parser, TokenId last_token_id,
-            InlineAsmContext &inlineAsmCtx)
+parse_asm_arg (Parser<MacroInvocLexer> &parser, TokenId last_token_id,
+              InlineAsmContext &inlineAsmCtx)
 {
   auto token = parser.peek_current_token ();
   tl::optional<std::string> fm_string;
@@ -505,7 +505,7 @@ parse_asm (location_t invoc_locus, AST::MacroInvocData &invoc,
     }
 
   // operands stream, also handles the optional ","
-  parseAsmArg (parser, last_token_id, inlineAsmCtx);
+  parse_asm_arg (parser, last_token_id, inlineAsmCtx);
 
   return tl::nullopt;
 }
index 65763780979c04e8b48d9c6d16a79b93647b9e84..a35d7707e6c9c912349a041c2a392a04c1dbf269 100644 (file)
@@ -31,8 +31,8 @@ public:
 };
 
 int
-parseAsmArg (Parser<MacroInvocLexer> &p, TokenId last_token_id,
-            InlineAsmContext &inlineAsmCtx);
+parse_asm_arg (Parser<MacroInvocLexer> &p, TokenId last_token_id,
+              InlineAsmContext &inlineAsmCtx);
 
 tl::optional<AST::Fragment>
 parse_global_asm (location_t invoc_locus, AST::MacroInvocData &invoc);