aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-02-11 10:11:25 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-02-11 10:11:25 +0000
commitd21ae240496a48628cf1beafcc192760ebe1be89 (patch)
tree699195b8041ca3d59bb5a2a45941aca39562585a /gcc/rust/rust-session-manager.cc
parentdf2dbbc0343afcca95d515d8843612b0334bc17b (diff)
downloadgcc-d21ae240496a48628cf1beafcc192760ebe1be89.zip
gcc-d21ae240496a48628cf1beafcc192760ebe1be89.tar.gz
gcc-d21ae240496a48628cf1beafcc192760ebe1be89.tar.bz2
Cleanup header usage and remove void_type wrapper
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
-rw-r--r--gcc/rust/rust-session-manager.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index 0150a48..4e140fd 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -17,17 +17,8 @@
// <http://www.gnu.org/licenses/>.
// #include "rust-session-manager.h"
-#include <fstream>
-#include <sstream>
#include "rust-session-manager.h"
#include "rust-diagnostics.h"
-#include "diagnostic.h"
-#include "input.h"
-
-#include "target.h"
-#include "tm.h"
-#include "memmodel.h"
-#include "tm_p.h"
//#include "rust-target.h"
/*TODO This isn't (currently?) necessary, but if '#include'd after '#include
@@ -54,6 +45,16 @@
#include "rust-ast-resolve-unused.h"
#include "rust-compile.h"
+#include "diagnostic.h"
+#include "input.h"
+#include "target.h"
+#include "tm.h"
+#include "memmodel.h"
+#include "tm_p.h"
+
+extern bool
+saw_errors (void);
+
extern Linemap *
rust_get_linemap ();