diff options
author | Alan Modra <amodra@gmail.com> | 2013-10-14 02:53:01 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-10-14 02:53:01 +0000 |
commit | e84fe78fbc4573769e4e96baf38696354718b382 (patch) | |
tree | 2e5ca7f25129ef868454f6539e6f1e3c30ecdd5e /gold/output.h | |
parent | 0b76b0cedbc4b4c8ffd366e30683a3ab871888bc (diff) | |
download | gdb-e84fe78fbc4573769e4e96baf38696354718b382.zip gdb-e84fe78fbc4573769e4e96baf38696354718b382.tar.gz gdb-e84fe78fbc4573769e4e96baf38696354718b382.tar.bz2 |
* 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().
Diffstat (limited to 'gold/output.h')
-rw-r--r-- | gold/output.h | 11 |
1 files changed, 7 insertions, 4 deletions
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 |