Tweak comments;

This commit is contained in:
Benjamin Bouvier
2019-09-03 15:31:13 +02:00
parent 26b88ae7b5
commit 8a9384f869
6 changed files with 44 additions and 33 deletions

View File

@@ -185,7 +185,7 @@ where
sink.begin_jumptables();
// output jump tables
// Output jump tables.
for (jt, jt_data) in func.jump_tables.iter() {
let jt_offset = func.jt_offsets[jt];
for ebb in jt_data.iter() {
@@ -196,7 +196,7 @@ where
sink.begin_rodata();
// output constants
// Output constants.
for (_, constant_data) in func.dfg.constants.iter() {
for byte in constant_data.iter() {
sink.put1(*byte)

View File

@@ -129,8 +129,7 @@ pub fn relax_branches(
for (jt, jt_data) in func.jump_tables.iter() {
func.jt_offsets[jt] = offset;
// TODO: this should be computed based on the min size needed to hold
// the furthest branch.
// TODO: this should be computed based on the min size needed to hold the furthest branch.
offset += jt_data.len() as u32 * 4;
}