[WebAssembly] Add some comments and tidy up whitespace.

llvm-svn: 296402
This commit is contained in:
Dan Gohman
2017-02-27 22:41:39 +00:00
parent 10268f93e8
commit d37dc2f773
4 changed files with 6 additions and 5 deletions

View File

@@ -283,7 +283,8 @@ void WasmObjectWriter::recordRelocation(MCAssembler &Asm,
namespace {
//
// The signature of a wasm function, in a struct capable of being used as a
// DenseMap key.
struct WasmFunctionType {
// Support empty and tombstone instances, needed by DenseMap.
enum { Plain, Empty, Tombstone } State;
@@ -356,7 +357,7 @@ struct WasmGlobal {
uint32_t InitialValue;
};
} // end anonymous namespace
} // end anonymous namespace
// Write X as an (unsigned) LEB value at offset Offset in Stream, padded
// to allow patching.