projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove alloca(0) calls
[deliverable/binutils-gdb.git]
/
gold
/
expression.cc
diff --git
a/gold/expression.cc
b/gold/expression.cc
index 536c74e21dfe2e680e04de867697306896e16c7d..2471e25a2affa7bc904d6105ca78b859909079a8 100644
(file)
--- a/
gold/expression.cc
+++ b/
gold/expression.cc
@@
-1,6
+1,6
@@
// expression.cc -- expressions in linker scripts for gold
// expression.cc -- expressions in linker scripts for gold
-// Copyright (C) 2006-201
6
Free Software Foundation, Inc.
+// Copyright (C) 2006-201
9
Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@
-205,6
+205,14
@@
class Symbol_expression : public Expression
uint64_t
value(const Expression_eval_info*);
uint64_t
value(const Expression_eval_info*);
+ void
+ set_expr_sym_in_real_elf(Symbol_table* symtab) const
+ {
+ Symbol* sym = symtab->lookup(this->name_.c_str());
+ if (sym != NULL)
+ sym->set_in_real_elf();
+ }
+
void
print(FILE* f) const
{ fprintf(f, "%s", this->name_.c_str()); }
void
print(FILE* f) const
{ fprintf(f, "%s", this->name_.c_str()); }
@@
-318,6
+326,10
@@
class Unary_expression : public Expression
arg_print(FILE* f) const
{ this->arg_->print(f); }
arg_print(FILE* f) const
{ this->arg_->print(f); }
+ void
+ set_expr_sym_in_real_elf(Symbol_table* symtab) const
+ { return this->arg_->set_expr_sym_in_real_elf(symtab); }
+
private:
Expression* arg_;
};
private:
Expression* arg_;
};
@@
-437,6
+449,13
@@
class Binary_expression : public Expression
fprintf(f, ")");
}
fprintf(f, ")");
}
+ void
+ set_expr_sym_in_real_elf(Symbol_table* symtab) const
+ {
+ this->left_->set_expr_sym_in_real_elf(symtab);
+ this->right_->set_expr_sym_in_real_elf(symtab);
+ }
+
private:
Expression* left_;
Expression* right_;
private:
Expression* left_;
Expression* right_;
@@
-622,6
+641,14
@@
class Trinary_expression : public Expression
arg3_print(FILE* f) const
{ this->arg3_->print(f); }
arg3_print(FILE* f) const
{ this->arg3_->print(f); }
+ void
+ set_expr_sym_in_real_elf(Symbol_table* symtab) const
+ {
+ this->arg1_->set_expr_sym_in_real_elf(symtab);
+ this->arg2_->set_expr_sym_in_real_elf(symtab);
+ this->arg3_->set_expr_sym_in_real_elf(symtab);
+ }
+
private:
Expression* arg1_;
Expression* arg2_;
private:
Expression* arg1_;
Expression* arg2_;
This page took
0.024119 seconds
and
4
git commands to generate.