From c29e8bc452c87f27f57c5d7e31dec2fc6a6eb356 Mon Sep 17 00:00:00 2001 From: Brian Carroll Date: Sun, 31 Oct 2021 08:53:06 +0000 Subject: [PATCH] comment formatting --- compiler/gen_wasm/src/module_builder.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/compiler/gen_wasm/src/module_builder.rs b/compiler/gen_wasm/src/module_builder.rs index a0b085343b..1480a85182 100644 --- a/compiler/gen_wasm/src/module_builder.rs +++ b/compiler/gen_wasm/src/module_builder.rs @@ -248,11 +248,9 @@ impl Serialize for LinkingInitFunc { } } -//---------------- -// +//------------------------------------------------ // Common data -// -//---------------- +//------------------------------------------------ #[repr(u8)] #[derive(PartialEq, Eq, Clone, Copy, Debug)] @@ -291,11 +289,9 @@ impl<'a> Serialize for LinkingComdat<'a> { } } -//---------------- -// +//------------------------------------------------ // Symbol table -// -//---------------- +//------------------------------------------------ /// Indicating that this is a weak symbol. When /// linking multiple modules defining the same symbol, all weak definitions are @@ -442,11 +438,9 @@ impl Serialize for SymInfo { } } -//-------------------------------- -// +//---------------------------------------------------------------- // Linking subsections -// -//-------------------------------- +//---------------------------------------------------------------- pub enum LinkingSubSection<'a> { /// Extra metadata about the data segments. @@ -482,6 +476,10 @@ impl<'a> Serialize for LinkingSubSection<'a> { } } +//---------------------------------------------------------------- +// Linking metadata section +//---------------------------------------------------------------- + const LINKING_VERSION: u8 = 2; pub struct LinkingSection<'a> {