aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Rizan Farooqui <rizanfarooqui@gmail.com>2023-10-04 13:49:24 +0530
committerCohenArthur <arthur.cohen@embecosm.com>2023-10-05 07:03:48 +0000
commitc7728c8020334fecb47789163ba94326aab6208c (patch)
tree5f8235661e57efed333a5ad4d1fa17d8df0d4673
parent1908504f62d75e1084923c4e1ace6c3784299344 (diff)
Removed unnecessary comments
gcc/rust/ChangeLog: * expand/rust-macro-builtins.cc (MacroBuiltin::include_str_handler): Comment removed (MacroBuiltin::env_handler): Comment removed (MacroBuiltin::cfg_handler): Comment removed (MacroBuiltin::line_handler): Comment removed Signed-off-by: Mohammed Rizan Farooqui <rizanfarooqui@gmail.com>
-rw-r--r--gcc/rust/expand/rust-macro-builtins.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/rust/expand/rust-macro-builtins.cc b/gcc/rust/expand/rust-macro-builtins.cc
index f00b64c3bc0..d0b19d95caa 100644
--- a/gcc/rust/expand/rust-macro-builtins.cc
+++ b/gcc/rust/expand/rust-macro-builtins.cc
@@ -583,7 +583,6 @@ MacroBuiltin::include_str_handler (location_t invoc_locus,
auto node = AST::SingleASTNode (make_string (invoc_locus, str));
auto str_tok = make_token (Token::make_string (invoc_locus, std::move (str)));
- // FIXME: Do not return an empty token vector here
return AST::Fragment ({node}, std::move (str_tok));
}
@@ -785,7 +784,6 @@ MacroBuiltin::env_handler (location_t invoc_locus, AST::MacroInvocData &invoc)
auto tok
= make_token (Token::make_string (invoc_locus, std::move (env_value)));
- // FIXME: Do not return an empty token vector here
return AST::Fragment ({node}, std::move (tok));
}
@@ -824,7 +822,6 @@ MacroBuiltin::cfg_handler (location_t invoc_locus, AST::MacroInvocData &invoc)
auto tok = make_token (
Token::make (result ? TRUE_LITERAL : FALSE_LITERAL, invoc_locus));
- // FIXME: Do not return an empty token vector here
return AST::Fragment ({literal_exp}, std::move (tok));
}
@@ -912,7 +909,6 @@ MacroBuiltin::line_handler (location_t invoc_locus, AST::MacroInvocData &)
auto tok
= make_token (Token::make_int (invoc_locus, std::to_string (current_line)));
- // FIXME: Do not return an empty token vector here
return AST::Fragment ({line_no}, std::move (tok));
}