This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gold: Remove ei_class from mips.cc.
- From: Cary Coutant <ccoutant at gmail dot com>
- To: Vladimir Radosavljevic <Vladimir dot Radosavljevic at imgtec dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>, Petar Jovanovic <Petar dot Jovanovic at imgtec dot com>
- Date: Thu, 17 Mar 2016 15:21:16 -0700
- Subject: Re: [PATCH] gold: Remove ei_class from mips.cc.
- Authentication-results: sourceware.org; auth=none
- References: <3060420525346945A0ADBD567348A91723740A85 at BADAG02 dot ba dot imgtec dot org>
- this->is_n64_ = elfcpp::abi_64(ehdr.get_e_ident()[elfcpp::EI_CLASS]);
+ this->is_n64_ = size == 64;
The only places left that use is_n64_ are is_n64() and is_newabi(),
and is_n64() isn't ever called. You could remove this data member, the
is_n64() method, and change is_newabi() to check for size == 64.
-cary