aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-edge.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-05-31 12:52:16 +0200
committerPhilip Herron <philip.herron@embecosm.com>2023-06-01 15:23:35 +0000
commit430b26a3295329c931ce527de20b4c339eb285f2 (patch)
tree5beb68993e6cecfcf125237c574a6048e144caa8 /gcc/gimple-range-edge.cc
parentf35d52ce69df89401bde47f648868fb227a7de40 (diff)
downloadgcc-430b26a3295329c931ce527de20b4c339eb285f2.zip
gcc-430b26a3295329c931ce527de20b4c339eb285f2.tar.gz
gcc-430b26a3295329c931ce527de20b4c339eb285f2.tar.bz2
converter: Convert back Locations from spans
Use spans to get locations of expanded tokens instead of using unknown locations. gcc/rust/ChangeLog: * lex/rust-lex.h: Make build_token method public. * lex/rust-token.h: Add a setter for a token location. * util/rust-token-converter.cc (convert): Add the function to convert from a Span to a Location. (from_ident): Convert Ident span to a Location. (from_literal): Convert Literal span to a Location. (from_punct): Convert Punct span to a Location. (from_group): Convert Group span to a Location. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/gimple-range-edge.cc')
0 files changed, 0 insertions, 0 deletions