aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-backend.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-02-17 16:16:28 +0000
committerPhilip Herron <herron.philip@googlemail.com>2021-02-18 19:00:48 +0000
commitdf5ef68888c43ebf19126bdad44c6966c73b70cc (patch)
treee55be65adb1f7c86d7d4485c802531df02fd0501 /gcc/rust/rust-backend.h
parent107674522dbd1a9e63c26ea41ec0e321edac2187 (diff)
downloadgcc-df5ef68888c43ebf19126bdad44c6966c73b70cc.zip
gcc-df5ef68888c43ebf19126bdad44c6966c73b70cc.tar.gz
gcc-df5ef68888c43ebf19126bdad44c6966c73b70cc.tar.bz2
Add debug interface to GCC debug_tree on GENERIC graphs
This adds in a debugging interface for the backend IR to help diagnose issues with the tree.
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r--gcc/rust/rust-backend.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h
index 0ffc1aa..7fb469b 100644
--- a/gcc/rust/rust-backend.h
+++ b/gcc/rust/rust-backend.h
@@ -84,6 +84,15 @@ public:
{}
};
+ // debug
+ virtual void debug (Btype *) = 0;
+ virtual void debug (Bexpression *) = 0;
+ virtual void debug (Bstatement *) = 0;
+ virtual void debug (Bfunction *) = 0;
+ virtual void debug (Bblock *) = 0;
+ virtual void debug (Bvariable *) = 0;
+ virtual void debug (Blabel *) = 0;
+
// Types.
// Produce an error type. Actually the backend could probably just