diff options
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r-- | gcc/rust/rust-backend.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h index ac856af..c228f6b 100644 --- a/gcc/rust/rust-backend.h +++ b/gcc/rust/rust-backend.h @@ -76,10 +76,6 @@ public: // Types. - // Produce an error type. Actually the backend could probably just - // crash if this is called. - virtual tree error_type () = 0; - // Get a void type. This is used in (at least) two ways: 1) as the // return type of a function with no result parameters; 2) // unsafe.Pointer is represented as *void. @@ -188,17 +184,6 @@ public: // converting nil to other types. virtual tree zero_expression (tree) = 0; - // Create an error expression. This is used for cases which should - // not occur in a correct program, in order to keep the compilation - // going without crashing. - virtual tree error_expression () = 0; - - // return whether this is error_mark_node - virtual bool is_error_expression (tree) = 0; - - // Create a nil pointer expression. - virtual tree nil_pointer_expression () = 0; - virtual tree unit_expression () = 0; // Create a reference to a variable. @@ -324,11 +309,6 @@ public: // Statements. - // Create an error statement. This is used for cases which should - // not occur in a correct program, in order to keep the compilation - // going without crashing. - virtual tree error_statement () = 0; - // Create an expression statement within the specified function. virtual tree expression_statement (tree, tree) = 0; @@ -405,10 +385,6 @@ public: // be empty if there are no statements. virtual void block_add_statements (tree, const std::vector<tree> &) = 0; - // Return the block as a statement. This is used to include a block - // in a list of statements. - virtual tree block_statement (tree) = 0; - // Variables. // Create an error variable. This is used for cases which should @@ -508,11 +484,6 @@ public: // Functions. - // Create an error function. This is used for cases which should - // not occur in a correct program, in order to keep the compilation - // going without crashing. - virtual tree error_function () = 0; - // Bit flags to pass to the function method. // Set if this is a function declaration rather than a definition; @@ -557,10 +528,6 @@ public: const std::vector<Bvariable *> ¶m_vars) = 0; - // Set the function body for FUNCTION using the code in CODE_STMT. Returns - // true on success, false on failure. - virtual bool function_set_body (tree function, tree code_stmt) = 0; - // Look up a named built-in function in the current backend implementation. // Returns NULL if no built-in function by that name exists. virtual tree lookup_gcc_builtin (const std::string &) = 0; |