aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 3093c01..bf47ebb 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -2022,6 +2022,19 @@ symbol_set_value_expression (symbolS *s, const expressionS *exp)
s->sy_value = *exp;
}
+/* Return a pointer to the X_add_number component of a symbol. */
+
+valueT *
+symbol_X_add_number (symbolS *s)
+{
+#ifdef BFD_ASSEMBLER
+ if (LOCAL_SYMBOL_CHECK (s))
+ return &((struct local_symbol *) s)->lsy_value;
+#endif
+
+ return &s->sy_value.X_add_number;
+}
+
/* Set the value of SYM to the current position in the current segment. */
void