aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-02-11 10:25:01 +0000
committerGitHub <noreply@github.com>2021-02-11 10:25:01 +0000
commita6405f1438b2868418f94cc1673001ca2b50a65c (patch)
tree915c10b77703d0ef8d074775ddea95eb0f728cab /gcc/rust/rust-session-manager.cc
parent0c7d0135663b6f0d94e0ffd931366ba2b32f8b2c (diff)
parent7d4ed9d38c7a636408a262f70aa69d2a34e2169d (diff)
downloadgcc-a6405f1438b2868418f94cc1673001ca2b50a65c.zip
gcc-a6405f1438b2868418f94cc1673001ca2b50a65c.tar.gz
gcc-a6405f1438b2868418f94cc1673001ca2b50a65c.tar.bz2
Merge pull request #227 from SimplyTheOther/master
Changes to AST structure in preparation for macro expansion and cleanup
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
-rw-r--r--gcc/rust/rust-session-manager.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index 6960556..b8742fb 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -366,8 +366,11 @@ Session::enable_dump (std::string arg)
{
if (arg.empty ())
{
- rust_error_at (Location (), "dump option was not given a name. choose "
- "%<lex%>, %<parse%>, or %<target_options%>");
+ rust_error_at (
+ Location (),
+ "dump option was not given a name. choose %<lex%>, %<parse%>, "
+ "%<register_plugins%>, %<injection%>, %<expansion%>, %<resolution%>,"
+ " %<target_options%>, %<hir%>, or %<all%>");
return false;
}
@@ -401,11 +404,6 @@ Session::enable_dump (std::string arg)
}
else if (arg == "target_options")
{
- // special case - dump all target options, and then quit compilation
- // nope, option handling called before init, so have to make this an
- // actual compile option
- // options.target_data.dump_target_options();
- // return false;
options.enable_dump_option (CompileOptions::TARGET_OPTION_DUMP);
}
else if (arg == "hir")
@@ -416,8 +414,9 @@ Session::enable_dump (std::string arg)
{
rust_error_at (
Location (),
- "dump option %qs was unrecognised. choose %<lex%>, %<parse%>, or "
- "%<target_options%>",
+ "dump option %qs was unrecognised. choose %<lex%>, %<parse%>, "
+ "%<register_plugins%>, %<injection%>, %<expansion%>, %<resolution%>,"
+ " %<target_options%>, or %<hir%>",
arg.c_str ());
return false;
}