summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Erhardt <erhardt@cs.fau.de>2017-12-15 10:08:28 +0100
committerChristoph Erhardt <erhardt@cs.fau.de>2017-12-15 10:08:28 +0100
commit8931a030fd6cff232ad9860f592e54329d9d04ca (patch)
tree3edc68f552c39e05c471f57759ff54751432b081
parent76a5d47c526e37fbe9aa856c1eb8c61e7e22919c (diff)
Fix typos in comments
-rw-r--r--include/libfirm/typerep.h2
-rw-r--r--ir/ana/irconsconfirm.c2
-rw-r--r--ir/opt/iropt.c2
-rw-r--r--ir/tr/type_t.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/libfirm/typerep.h b/include/libfirm/typerep.h
index dc67960..3bd08fe 100644
--- a/include/libfirm/typerep.h
+++ b/include/libfirm/typerep.h
@@ -702,7 +702,7 @@ ENUM_BITSET(ptr_access_kind)
typedef enum tp_opcode {
tpo_uninitialized = 0, /* not a type opcode */
tpo_struct, /**< A struct type. */
- tpo_union, /**< An union type. */
+ tpo_union, /**< A union type. */
tpo_class, /**< A class type. */
tpo_segment, /**< A segment type. */
tpo_method, /**< A method type. */
diff --git a/ir/ana/irconsconfirm.c b/ir/ana/irconsconfirm.c
index cb733a1..01b56d5 100644
--- a/ir/ana/irconsconfirm.c
+++ b/ir/ana/irconsconfirm.c
@@ -91,7 +91,7 @@ static void handle_case(ir_node *block, ir_node *switchn, unsigned pn, env_t *en
ir_node *c = NULL;
ir_node *selector = get_Switch_selector(switchn);
- /* we can't do usefull things with the default label */
+ /* we can't do useful things with the default label */
if (pn == pn_Switch_default)
return;
diff --git a/ir/opt/iropt.c b/ir/opt/iropt.c
index 004a67a..d45302c 100644
--- a/ir/opt/iropt.c
+++ b/ir/opt/iropt.c
@@ -354,7 +354,7 @@ static ir_tarval *computed_value_Sub(const ir_node *n)
}
/**
- * Return the value of an unary Minus.
+ * Return the value of a unary Minus.
*/
static ir_tarval *computed_value_Minus(const ir_node *n)
{
diff --git a/ir/tr/type_t.h b/ir/tr/type_t.h
index 17ed18d..007d041 100644
--- a/ir/tr/type_t.h
+++ b/ir/tr/type_t.h
@@ -125,7 +125,7 @@ struct ir_type {
ir_visited_t visit; /**< visited counter for walks of the type information */
void *link; /**< holds temporary data - like in irnode_t.h */
type_dbg_info *dbi; /**< A pointer to information for debug support. */
- long nr; /**< An unique number for each type. */
+ long nr; /**< A unique number for each type. */
union {
compound_attr compound;
class_attr cls;