diff options
Diffstat (limited to 'gold/resolve.cc')
-rw-r--r-- | gold/resolve.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gold/resolve.cc b/gold/resolve.cc index 669fbaf..98e93f0 100644 --- a/gold/resolve.cc +++ b/gold/resolve.cc @@ -53,14 +53,8 @@ Symbol_table::resolve(Sized_symbol<size>* to, if (object->target()->has_resolve()) { Sized_target<size, big_endian>* sized_target; -#ifdef HAVE_MEMBER_TEMPLATE_SPECIFICATIONS - sized_target = object->sized_target<size, big_endian>(); -#else - Target* target = object->target(); - assert(target->get_size() == size); - assert(target->is_big_endian() ? big_endian : !big_endian); - sized_target = static_cast<Sized_target<size, big_endian>*>(target); -#endif + sized_target = object->sized_target SELECT_SIZE_ENDIAN_NAME ( + SELECT_SIZE_ENDIAN_ONLY(size, big_endian)); sized_target->resolve(to, sym, object); return; } |