aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-backend.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-08-11 12:54:42 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-08-11 12:54:42 +0100
commit113b830ca0f80cf02d2db993fb3850b1f8c3293e (patch)
tree286cd2a0784258291c80554612596d6c81a4815c /gcc/rust/rust-backend.h
parenteca2ac2c23e0c8b438fd696d4f85e35c9210d8dd (diff)
downloadgcc-113b830ca0f80cf02d2db993fb3850b1f8c3293e.zip
gcc-113b830ca0f80cf02d2db993fb3850b1f8c3293e.tar.gz
gcc-113b830ca0f80cf02d2db993fb3850b1f8c3293e.tar.bz2
Remove unused switch statement wrapper
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r--gcc/rust/rust-backend.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h
index f7c0b08..126283c 100644
--- a/gcc/rust/rust-backend.h
+++ b/gcc/rust/rust-backend.h
@@ -306,18 +306,6 @@ public:
// exit expressions
virtual tree exit_expression (tree condition, Location) = 0;
- // Create a switch statement where the case values are constants.
- // CASES and STATEMENTS must have the same number of entries. If
- // VALUE matches any of the list in CASES[i], which will all be
- // integers, then STATEMENTS[i] is executed. STATEMENTS[i] will
- // either end with a goto statement or will fall through into
- // STATEMENTS[i + 1]. CASES[i] is empty for the default clause,
- // which need not be last. FUNCTION is the current function.
- virtual tree switch_statement (tree function, tree value,
- const std::vector<std::vector<tree> > &cases,
- const std::vector<tree> &statements, Location)
- = 0;
-
// Create a single statement from two statements.
virtual tree compound_statement (tree, tree) = 0;