summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-07 00:54:28 +0000
committerIan Lance Taylor <iant@google.com>2007-12-07 00:54:28 +0000
commit4bbcc8282e3bdc702867ba5ee43970637c88971b (patch)
tree4df13b5462ec6348748a09c9b486e8d2d24953c6
parent98c40df5ef2a550fd1a2bc4829ee06de2a929468 (diff)
downloadbinutils-redhat-4bbcc8282e3bdc702867ba5ee43970637c88971b.tar.gz
From Cary Coutant: Remove commented out assert. Also add comment for
bitfield check.
-rw-r--r--gold/object.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gold/object.h b/gold/object.h
index 4b826cf60c..5faa9115ac 100644
--- a/gold/object.h
+++ b/gold/object.h
@@ -660,10 +660,7 @@ class Symbol_value
// table.
bool
needs_output_symtab_entry() const
- {
- // gold_assert(this->output_symtab_index_ != 0);
- return this->output_symtab_index_ != -1U;
- }
+ { return this->output_symtab_index_ != -1U; }
// Return the index in the output symbol table.
unsigned int
@@ -726,6 +723,8 @@ class Symbol_value
set_input_shndx(unsigned int i)
{
this->input_shndx_ = i;
+ // input_shndx_ field is a bitfield, so make sure that the value
+ // fits.
gold_assert(this->input_shndx_ == i);
}