aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-07-13 12:04:03 +0000
committerIan Lance Taylor <ian@airs.com>2010-07-13 12:04:03 +0000
commit8274239589cb7d560af55e3565ad7e6829b1edfe (patch)
tree2f57a27ac6fc1a907a4032919d280af987770de5 /gold/output.h
parent241531d62d5e36e157fbf2f5db99f50b632d1a29 (diff)
downloadgdb-8274239589cb7d560af55e3565ad7e6829b1edfe.zip
gdb-8274239589cb7d560af55e3565ad7e6829b1edfe.tar.gz
gdb-8274239589cb7d560af55e3565ad7e6829b1edfe.tar.bz2
* output.h (Output_section_lookup_maps::add_merge_section):
Correct check of whether value was inserted. (Output_section_lookup_maps::add_merge_input_section): Likewise. (Output_section_lookup_maps::add_relaxed_input_section): Likewise. * arm.cc (Target_arm::got_section): Remove used local os. * i386.cc (Target_i386::got_section): Likewise. * x86_64.cc (Target_x86_64::got_section): Likewise. * sparc.cc (Target_sparc::got_section): Likewise. (Target_sparc::relocate): Remove unused local have_got_offset. * powerpc.cc (Target_powerpc::relocate): Likewise.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/output.h b/gold/output.h
index 1a0a8da..7355718 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -2432,7 +2432,7 @@ class Output_section_lookup_maps
std::pair<Merge_section_properties, Output_merge_base*> value(msp, pomb);
std::pair<Merge_sections_by_properties::iterator, bool> result =
this->merge_sections_by_properties_.insert(value);
- gold_assert(value.second);
+ gold_assert(result.second);
}
// Add a mapping from a merged input section in OBJECT with index SHNDX
@@ -2445,7 +2445,7 @@ class Output_section_lookup_maps
std::pair<Const_section_id, Output_merge_base*> value(csid, pomb);
std::pair<Merge_sections_by_id::iterator, bool> result =
this->merge_sections_by_id_.insert(value);
- gold_assert(value.second);
+ gold_assert(result.second);
}
// Find a relaxed input section of OBJECT with index SHNDX.
@@ -2469,7 +2469,7 @@ class Output_section_lookup_maps
value(csid, poris);
std::pair<Relaxed_input_sections_by_id::iterator, bool> result =
this->relaxed_input_sections_by_id_.insert(value);
- gold_assert(value.second);
+ gold_assert(result.second);
}
private: