https://gcc.gnu.org/g:4b1fa28ff56288eea4c2657061ce9df839fc02ea

commit 4b1fa28ff56288eea4c2657061ce9df839fc02ea
Author: jjasmine <tanghocle...@gmail.com>
Date:   Tue May 28 00:17:33 2024 -0700

    Renamed parseAsmArg to conform to other function names
    
    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.

Diff:
---
 gcc/rust/expand/rust-macro-builtins-asm.cc | 6 +++---
 gcc/rust/expand/rust-macro-builtins-asm.h  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/rust/expand/rust-macro-builtins-asm.cc 
b/gcc/rust/expand/rust-macro-builtins-asm.cc
index 20a434c6c296..55d822d1f901 100644
--- a/gcc/rust/expand/rust-macro-builtins-asm.cc
+++ b/gcc/rust/expand/rust-macro-builtins-asm.cc
@@ -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;
 }
diff --git a/gcc/rust/expand/rust-macro-builtins-asm.h 
b/gcc/rust/expand/rust-macro-builtins-asm.h
index 65763780979c..a35d7707e6c9 100644
--- a/gcc/rust/expand/rust-macro-builtins-asm.h
+++ b/gcc/rust/expand/rust-macro-builtins-asm.h
@@ -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);

Reply via email to