]> gcc.gnu.org Git - gcc.git/commit
gccrs: Compiler proper interface kicks off the pipeline
authorPhilip Herron <philip.herron@embecosm.com>
Tue, 23 Aug 2022 15:44:42 +0000 (16:44 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:07 +0000 (14:00 +0100)
commitea34614225d4d255e58f63206eb12178b870cb4c
treef636c093e1f14f58363f02e7c8ac749ec0158ce8
parentbba14a0790f0858f76118bbb9b3a8231eb241138
gccrs: Compiler proper interface kicks off the pipeline

This is a wrapper to get out of C land in the rust-lang.cc and into our
class hierarchy for the rust front-end. We expect that the front-end only
support one source file input as the expansion pass will attempt to resolve
that relative pass and parse accordingly.

The main missing piece here is that we are using saw_errors() to return
early which is unnecessary but as our error handling has been improving
over time we will start to take advantage of error node in our type system
as well as error_mark_node from GCC. The caveat being that our lints/checks
expect no errors and will throw an assertion.

gcc/rust/
* rust-lang.cc: New.
* rust-session-manager.cc: New.
* rust-session-manager.h: New.
gcc/rust/rust-lang.cc [new file with mode: 0644]
gcc/rust/rust-session-manager.cc [new file with mode: 0644]
gcc/rust/rust-session-manager.h [new file with mode: 0644]
This page took 0.061856 seconds and 6 git commands to generate.