Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tiger
nolimips
Commits
d4cc3ff2
Commit
d4cc3ff2
authored
Jul 17, 2003
by
Benoit Perrot
Browse files
Add a const accessor to Section's labels.
parent
2b10fad1
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
d4cc3ff2
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:
Factor
ize
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>
...
...
src/inst/section.hh
View file @
d4cc3ff2
...
...
@@ -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
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment