diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-10-18 01:30:26 -0400 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2007-10-18 01:30:26 -0400 |
commit | 757c8d3e52ea7bb9fb8c836e310689e49db148ed (patch) | |
tree | 07219935e0b7aa82f7623da0f4ce9f3e2e2bea54 /ast.c | |
parent | 642ac5bd670996cbef8754270e60a7219d546ed2 (diff) |
Get rid of type resolution function. Instead just overwrite the
contents of the type spec in the type-checker.
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -483,17 +483,6 @@ ast_type_spec_new_object (ast_class_definition_t *class) return type_spec; } -ast_type_spec_t * -ast_type_spec_resolve (const ast_type_spec_t *type) -{ - g_return_val_if_fail (type != NULL, NULL); - - if (type->common.type == AST_IDENTIFIER_TYPE) - return ast_type_spec_resolve (type->identifier.resolved); - else - return (ast_type_spec_t *)type; -} - int ast_type_spec_get_size (ast_type_spec_t *type) { @@ -529,11 +518,8 @@ ast_type_spec_get_size (ast_type_spec_t *type) break; case AST_INFERRED_TYPE: - size = ast_type_spec_get_size (type->inferred.resolved); - break; - case AST_IDENTIFIER_TYPE: - size = ast_type_spec_get_size (type->identifier.resolved); + g_assert_not_reached(); break; } |