diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-03 00:34:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-03 00:34:49 +0000 |
commit | 6340166c8b339b88f1baeff8a3703bf09ed7ce1c (patch) | |
tree | 13efda39532068099a6275af784956645b92e125 /gold/target-select.cc | |
parent | 66247fc7443dad8a4abafbef57bc4b8dc659d8dc (diff) | |
download | binutils-gdb-6340166c8b339b88f1baeff8a3703bf09ed7ce1c.tar.gz |
Parameterize object_unittest to work for whatever target types are
supported.
Diffstat (limited to 'gold/target-select.cc')
-rw-r--r-- | gold/target-select.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gold/target-select.cc b/gold/target-select.cc index 085270f6124..0cfa02bc6ad 100644 --- a/gold/target-select.cc +++ b/gold/target-select.cc @@ -41,8 +41,8 @@ namespace gold // list. This runs at global constructor time, so we want it to be // fast. -Target_selector::Target_selector(int machine, int size, bool big_endian) - : machine_(machine), size_(size), big_endian_(big_endian) +Target_selector::Target_selector(int machine, int size, bool is_big_endian) + : machine_(machine), size_(size), is_big_endian_(is_big_endian) { this->next_ = target_selectors; target_selectors = this; @@ -51,15 +51,15 @@ Target_selector::Target_selector(int machine, int size, bool big_endian) // Find the target for an ELF file. extern Target* -select_target(int machine, int size, bool big_endian, int osabi, +select_target(int machine, int size, bool is_big_endian, int osabi, int abiversion) { for (Target_selector* p = target_selectors; p != NULL; p = p->next()) { int pmach = p->machine(); if ((pmach == machine || pmach == elfcpp::EM_NONE) - && p->size() == size - && p->big_endian() ? big_endian : !big_endian) + && p->get_size() == size + && (p->is_big_endian() ? is_big_endian : !is_big_endian)) { Target* ret = p->recognize(machine, osabi, abiversion); if (ret != NULL) |