Added more missing doc comments.

This commit is contained in:
Arnavion 2018-03-08 12:47:43 -08:00
parent 040d6ef388
commit 6bf5f10273

View File

@ -132,46 +132,73 @@ pub enum RelocationEntry {
/// Function table index. /// Function table index.
TableIndexSleb { TableIndexSleb {
/// Offset of the value to rewrite.
offset: u32, offset: u32,
/// Index of the function symbol in the symbol table.
index: u32, index: u32,
}, },
/// Function table index. /// Function table index.
TableIndexI32 { TableIndexI32 {
/// Offset of the value to rewrite.
offset: u32, offset: u32,
/// Index of the function symbol in the symbol table.
index: u32, index: u32,
}, },
/// Linear memory index. /// Linear memory index.
MemoryAddressLeb { MemoryAddressLeb {
/// Offset of the value to rewrite.
offset: u32, offset: u32,
/// Index of the data symbol in the symbol table.
index: u32, index: u32,
/// Addend to add to the address.
addend: i32, addend: i32,
}, },
/// Linear memory index. /// Linear memory index.
MemoryAddressSleb { MemoryAddressSleb {
/// Offset of the value to rewrite.
offset: u32, offset: u32,
/// Index of the data symbol in the symbol table.
index: u32, index: u32,
/// Addend to add to the address.
addend: i32, addend: i32,
}, },
/// Linear memory index. /// Linear memory index.
MemoryAddressI32 { MemoryAddressI32 {
/// Offset of the value to rewrite.
offset: u32, offset: u32,
/// Index of the data symbol in the symbol table.
index: u32, index: u32,
/// Addend to add to the address.
addend: i32, addend: i32,
}, },
/// Type table index. /// Type table index.
TypeIndexLeb { TypeIndexLeb {
/// Offset of the value to rewrite.
offset: u32, offset: u32,
/// Index of the type used.
index: u32, index: u32,
}, },
/// Global index. /// Global index.
GlobalIndexLeb { GlobalIndexLeb {
/// Offset of the value to rewrite.
offset: u32, offset: u32,
/// Index of the global symbol in the symbol table.
index: u32, index: u32,
}, },
} }