summaryrefslogtreecommitdiffstats
path: root/gold/resolve.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-09-29 22:34:01 +0000
committerIan Lance Taylor <iant@google.com>2006-09-29 22:34:01 +0000
commit5482377ddc6d4104399a7e2e49518a6e893dca65 (patch)
tree17d8018e5b63b67fee207053404b8479c00f6843 /gold/resolve.cc
parent61ba1cf93601b0a0877a8ade94ba3c674a09f77e (diff)
downloadppe42-binutils-5482377ddc6d4104399a7e2e49518a6e893dca65.tar.gz
ppe42-binutils-5482377ddc6d4104399a7e2e49518a6e893dca65.zip
Clean up HAVE_MEMBER_TEMPLATE_SPECIFICATIONS somewhat.
Diffstat (limited to 'gold/resolve.cc')
-rw-r--r--gold/resolve.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/gold/resolve.cc b/gold/resolve.cc
index 669fbaf232..98e93f0737 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;
}
OpenPOWER on IntegriCloud