diff options
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins-asm.cc')
-rw-r--r-- | gcc/rust/expand/rust-macro-builtins-asm.cc | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/gcc/rust/expand/rust-macro-builtins-asm.cc b/gcc/rust/expand/rust-macro-builtins-asm.cc index 1bfc6e9..8c2b88c 100644 --- a/gcc/rust/expand/rust-macro-builtins-asm.cc +++ b/gcc/rust/expand/rust-macro-builtins-asm.cc @@ -307,20 +307,9 @@ parse_format_string (Parser<MacroInvocLexer> &parser, TokenId last_token_id) } tl::optional<AST::Fragment> -MacroBuiltin::global_asm_handler (location_t invoc_locus, - AST::MacroInvocData &invoc) +MacroBuiltin::asm_handler (location_t invoc_locus, AST::MacroInvocData &invoc, + bool is_global_asm) { - // Just to clarify the code - bool is_global_asm = true; - return parse_asm (invoc_locus, invoc, is_global_asm); -} - -tl::optional<AST::Fragment> -MacroBuiltin::nonglobal_asm_handler (location_t invoc_locus, - AST::MacroInvocData &invoc) -{ - // Just to clarify the code - bool is_global_asm = false; return parse_asm (invoc_locus, invoc, is_global_asm); } |