Commit d4cc3ff2 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Add a const accessor to Section's labels.

parent 2b10fad1
2003-07-17 Benot Perrot <benoit@lrde.epita.fr>
* src/inst/section.hh: Add a const accessor to Section's labels.
2003-07-12 Benot Perrot <benoit@lrde.epita.fr>
* src/inst/section.hh,
* src/inst/data_section.hh, src/inst/text_section.hh:
Factorize Section code.
Factor Section code.
2003-07-11 Benot Perrot <benoit@lrde.epita.fr>
* config/{depcomp, install-sh, missing, mkinstalldirs}:
Flush auto-generated files.
* config/depcomp, config/install-sh, config/missing,
* config/mkinstalldirs:
Remove auto-generated files.
2003-07-11 Benot Perrot <benoit@lrde.epita.fr>
......
......@@ -33,6 +33,7 @@ namespace inst
{
protected:
typedef std::list<const Label*> label_list_t;
typedef std::map<int, label_list_t> offset_label_t;
typedef std::map<const Label, int> label_offset_t;
public:
......@@ -64,12 +65,17 @@ namespace inst
return (*it).second;
}
const offset_label_t& get_offsets() const
{
return offsets;
}
public:
virtual void print(std::ostream& ostr) const = 0;
protected:
// FIXME: Might be static, to avoid multi-definition of labels.
std::map<int, label_list_t> labels;
offset_label_t labels;
label_offset_t offsets;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment