Commit 084d37c1 authored by Florian Liekweg's avatar Florian Liekweg
Browse files

whitespace

[r4289]
parent 001f2dd9
......@@ -20,7 +20,6 @@
#include "type_t.h"
#include "entity_t.h"
void
dbg_info_merge_pair(ir_node *nw, ir_node *old, dbg_action info) {
set_irn_dbg_info(nw, get_irn_dbg_info(old));
......@@ -28,8 +27,8 @@ dbg_info_merge_pair(ir_node *nw, ir_node *old, dbg_action info) {
void
dbg_info_merge_sets(ir_node **new_nodes, int n_new_nodes,
ir_node **old_nodes, int n_old_nodes,
dbg_action info) {
ir_node **old_nodes, int n_old_nodes,
dbg_action info) {
}
......@@ -37,8 +36,8 @@ void (*__dbg_info_merge_pair)(ir_node *nw, ir_node *old, dbg_action info)
= &dbg_info_merge_pair;
void (*__dbg_info_merge_sets)(ir_node **new_nodes, int n_new_nodes,
ir_node **old_nodes, int n_old_nodes,
dbg_action info)
ir_node **old_nodes, int n_old_nodes,
dbg_action info)
= &dbg_info_merge_sets;
......
......@@ -104,7 +104,7 @@ typedef enum {
dbg_opt_cse, /**< A Firm node was replaced due to common subexpression elimination. */
dbg_straightening, /**< A Firm subgraph was replaced by a single, existing block. */
dbg_if_simplification, /**< The control flow of an if is changed as either the
else, the then or both blocks are empty. */
else, the then or both blocks are empty. */
dbg_algebraic_simplification, /**< A Firm subgraph was replaced because of an algebraic
simplification. */
dbg_write_after_write, /**< A Firm subgraph was replaced because of a write
......@@ -114,7 +114,7 @@ typedef enum {
dbg_read_after_write, /**< A Firm subgraph was replaced because of a read
after write optimization. */
dbg_read_after_read, /**< A Firm subgraph was replaced because of a read
after read optimization. */
after read optimization. */
dbg_rem_poly_call, /**< Remove polymorphic call. */
dbg_dead_code, /**< Removing unreachable code, I.e. blocks that are never executed. */
dbg_max /**< Maximum value. */
......
......@@ -15,7 +15,7 @@
#include "trvrfy.h"
#include "irgraph_t.h" /* for checking whether constant code is allocated
on proper obstack */
on proper obstack */
/**
* Check a class
......@@ -41,18 +41,18 @@ static int check_class(type *tp) {
entity *ovw = get_entity_overwrites(mem, j);
/*printf(" overwrites: "); DDME(ovw);*/
/* Check whether ovw is member of one of tp's supertypes. If so,
the representation is correct. */
the representation is correct. */
found = false;
for (k = 0; k < get_class_n_supertypes(tp); k++) {
if (get_class_member_index(get_class_supertype(tp, k), ovw) >= 0) {
found = true;
break;
}
if (get_class_member_index(get_class_supertype(tp, k), ovw) >= 0) {
found = true;
break;
}
}
if (!found) {
DDMT(tp); DDME(mem);
assert(found && "overwrites an entity not contained in direct supertype");
return error_ent_not_cont;
DDMT(tp); DDME(mem);
assert(found && "overwrites an entity not contained in direct supertype");
return error_ent_not_cont;
}
}
......@@ -118,7 +118,7 @@ static void on_irg_storage(ir_node *n, void *env) {
/* We also test whether the setting of the visited flag is legal. */
assert(get_irn_visited(n) <= get_irg_visited(myenv->irg) &&
"Visited flag of node is larger than that of corresponding irg.");
"Visited flag of node is larger than that of corresponding irg.");
}
/**
......@@ -145,7 +145,7 @@ static int constants_on_wrong_irg(entity *ent) {
int i;
for (i = 0; i < get_compound_ent_n_values(ent); i++) {
if (constant_on_wrong_irg(get_compound_ent_value(ent, i)))
return 1;
return 1;
}
} else {
/* Might not be set if entity belongs to a description or is external allocated. */
......@@ -153,8 +153,8 @@ static int constants_on_wrong_irg(entity *ent) {
return constant_on_wrong_irg(get_atomic_ent_value(ent));
else if (get_entity_visibility(ent) != visibility_external_allocated)
assert((is_class_type(get_entity_owner(ent)) &&
get_class_peculiarity(get_entity_owner(ent)) == peculiarity_description) &&
"Value in constant atomic entity not set.");
get_class_peculiarity(get_entity_owner(ent)) == peculiarity_description) &&
"Value in constant atomic entity not set.");
}
return 0;
}
......@@ -164,8 +164,8 @@ static int constants_on_wrong_irg(entity *ent) {
* are build on the const irg graph.
*
* @return
* 0 if no error encountered
* != 0 else
* 0 if no error encountered
* != 0 else
*/
static int check_entity(entity *ent) {
current_ir_graph = get_const_code_irg();
......@@ -185,7 +185,7 @@ static int check_entity(entity *ent) {
if (get_entity_peculiarity(ent) == peculiarity_inherited) {
entity *impl = get_SymConst_entity(get_atomic_ent_value(ent));
assert(get_entity_peculiarity(impl) == peculiarity_existent &&
"inherited entities must have constant pointing to existent entity.");
"inherited entities must have constant pointing to existent entity.");
}
return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment