aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic-buffer.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-05-02 11:43:02 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-17 16:35:24 +0100
commitfa6c5c08a131d108a6a9f927b5154d2db81a84ba (patch)
treeb1360b5d87428134b6429cc09e9b9e9ff799e36a /gcc/diagnostic-buffer.h
parent1d6389b2916e9e285d16ab1d3cb8b7d6650d7cd6 (diff)
downloadgcc-fa6c5c08a131d108a6a9f927b5154d2db81a84ba.zip
gcc-fa6c5c08a131d108a6a9f927b5154d2db81a84ba.tar.gz
gcc-fa6c5c08a131d108a6a9f927b5154d2db81a84ba.tar.bz2
gccrs: Change lookup_local_defid return type to optional
Make the API more convenient by changing the function's return type. We can now differentiate between a stored null pointer and a missing value. gcc/rust/ChangeLog: * util/rust-hir-map.cc (Mappings::insert_defid_mapping): Adapt call to new return type. (Mappings::insert_local_defid_mapping): Likewise. (Mappings::lookup_local_defid): Change return type to wrap it with an optional. * util/rust-hir-map.h: Update the function's prototype. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/diagnostic-buffer.h')
0 files changed, 0 insertions, 0 deletions