This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] gold: remove unused methods in Output_data_got_powerpc
- From: Roland McGrath <mcgrathr at google dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Fri, 11 Oct 2013 11:31:34 -0700
- Subject: [PATCH] gold: remove unused methods in Output_data_got_powerpc
- Authentication-results: sourceware.org; auth=none
These (trivial) methods are unused, and a persnickety compiler will
complain because they use an incomplete type by value.
OK for trunk and 2.24?
Thanks,
Roland
gold/
* powerpc.cc (Output_data_got_powerpc): Remove unused methods
add_got_entry and add_got_entry_pair.
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -1989,25 +1989,6 @@ public:
header_index_(size == 32 ? 0x2000 : 0)
{ }
- class Got_entry;
-
- // Create a new GOT entry and return its offset.
- unsigned int
- add_got_entry(Got_entry got_entry)
- {
- this->reserve_ent();
- return Output_data_got<size, big_endian>::add_got_entry(got_entry);
- }
-
- // Create a pair of new GOT entries and return the offset of the first.
- unsigned int
- add_got_entry_pair(Got_entry got_entry_1, Got_entry got_entry_2)
- {
- this->reserve_ent(2);
- return Output_data_got<size, big_endian>::add_got_entry_pair(got_entry_1,
- got_entry_2);
- }
-
unsigned int
add_constant_pair(Valtype c1, Valtype c2)
{