diff options
author | Dan Gohman <dan433584@gmail.com> | 2017-02-27 22:41:39 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2017-02-27 22:41:39 +0000 |
commit | d37dc2f7735935905328214abea02c4e4ed6451c (patch) | |
tree | eb0207553a70bab9be332722f64cb4d0f621edc0 /llvm/lib/MC/WasmObjectWriter.cpp | |
parent | 10268f93e8df5e8ee3f992152df881f3833170a7 (diff) | |
download | bcm5719-llvm-d37dc2f7735935905328214abea02c4e4ed6451c.tar.gz bcm5719-llvm-d37dc2f7735935905328214abea02c4e4ed6451c.zip |
[WebAssembly] Add some comments and tidy up whitespace.
llvm-svn: 296402
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/WasmObjectWriter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp index 9c0a593592c..e61b1254735 100644 --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -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. |