diff options
author | tieway59 <tieway59@foxmail.com> | 2023-06-14 14:22:34 +0800 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:46:27 +0100 |
commit | b67124f2592096178c55ce6fbd2c522385c29c54 (patch) | |
tree | bcee9fae769dd5a11d6609cdf55b2f9a585331da /gcc/rust/rust-session-manager.cc | |
parent | 77cd54e9dc3fae65d47d2f7c375c74cab362a0c9 (diff) | |
download | gcc-b67124f2592096178c55ce6fbd2c522385c29c54.zip gcc-b67124f2592096178c55ce6fbd2c522385c29c54.tar.gz gcc-b67124f2592096178c55ce6fbd2c522385c29c54.tar.bz2 |
gccrs: fixup: Remove old typecheck dump
fixes https://github.com/Rust-GCC/gccrs/issues/2020
gcc/rust/ChangeLog:
* typecheck/rust-tycheck-dump.h: Delete this file
* rust-session-manager.cc: Remove `Session::dump_type_resolution`
and `TYPE_RESOLUTION_DUMP`
* rust-session-manager.h: Likewise
Signed-off-by: Taiwei Wu tieway59@foxmail.com
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
-rw-r--r-- | gcc/rust/rust-session-manager.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc index c7bbe89..2c84783 100644 --- a/gcc/rust/rust-session-manager.cc +++ b/gcc/rust/rust-session-manager.cc @@ -28,7 +28,6 @@ #include "rust-privacy-check.h" #include "rust-const-checker.h" #include "rust-feature-gate.h" -#include "rust-tycheck-dump.h" #include "rust-compile.h" #include "rust-cfg-parser.h" #include "rust-lint-scan-deadcode.h" @@ -630,10 +629,6 @@ Session::compile_crate (const char *filename) // type resolve Resolver::TypeResolution::Resolve (hir); - if (options.dump_option_enabled (CompileOptions::TYPE_RESOLUTION_DUMP)) - { - dump_type_resolution (hir); - } if (saw_errors ()) return; @@ -978,22 +973,6 @@ Session::dump_hir_pretty (HIR::Crate &crate) const out.close (); } -void -Session::dump_type_resolution (HIR::Crate &hir) const -{ - std::ofstream out; - out.open (kHIRTypeResolutionDumpFile); - if (out.fail ()) - { - rust_error_at (Linemap::unknown_location (), "cannot open %s:%m; ignored", - kHIRTypeResolutionDumpFile); - return; - } - - Resolver::TypeResolverDump::go (hir, out); - out.close (); -} - // imports NodeId |