From e84fe78fbc4573769e4e96baf38696354718b382 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 14 Oct 2013 02:53:01 +0000 Subject: * output.h (Output_data_got::add_constant): Tidy. (Output_data_got::add_constant_pair): New function. * powerpc.cc (Output_data_got_powerpc): Override all Output_data_got methods used so as to first call reserve_ent(). --- gold/output.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'gold/output.h') diff --git a/gold/output.h b/gold/output.h index a689a44..574d270 100644 --- a/gold/output.h +++ b/gold/output.h @@ -2380,10 +2380,13 @@ class Output_data_got : public Output_data_got_base // entry from the start of the GOT. unsigned int add_constant(Valtype constant) - { - unsigned int got_offset = this->add_got_entry(Got_entry(constant)); - return got_offset; - } + { return this->add_got_entry(Got_entry(constant)); } + + // Add a pair of constants to the GOT. This returns the offset of + // the new entry from the start of the GOT. + unsigned int + add_constant_pair(Valtype c1, Valtype c2) + { return this->add_got_entry_pair(Got_entry(c1), Got_entry(c2)); } // Replace GOT entry I with a new constant. void -- cgit v1.1