aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-hir-map.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-02-25 12:09:43 +0000
committerGitHub <noreply@github.com>2022-02-25 12:09:43 +0000
commitb695eb8f0bae01e00dfb9e9bf2554d1b48b76a9a (patch)
treedf10f5102aef7d31d306753511b381e79e002363 /gcc/rust/util/rust-hir-map.cc
parentd3a4cf93b73fb32ab8d18541cc4fa5ff7b74c8e8 (diff)
parent8cc50f2d23fc085801ea21237b68b5cb27efd291 (diff)
downloadgcc-b695eb8f0bae01e00dfb9e9bf2554d1b48b76a9a.zip
gcc-b695eb8f0bae01e00dfb9e9bf2554d1b48b76a9a.tar.gz
gcc-b695eb8f0bae01e00dfb9e9bf2554d1b48b76a9a.tar.bz2
Merge #970
970: Add file!() builtin r=CohenArthur a=CohenArthur Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/util/rust-hir-map.cc')
-rw-r--r--gcc/rust/util/rust-hir-map.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-hir-map.cc b/gcc/rust/util/rust-hir-map.cc
index 1c0e8fc..d154a8a 100644
--- a/gcc/rust/util/rust-hir-map.cc
+++ b/gcc/rust/util/rust-hir-map.cc
@@ -746,6 +746,7 @@ Mappings::insert_macro_def (AST::MacroRulesDefinition *macro)
Location, AST::MacroInvocData &)>>
builtin_macros = {
{"assert", MacroBuiltin::assert},
+ {"file", MacroBuiltin::file},
};
auto builtin = builtin_macros.find (macro->get_rule_name ());