Skip to content

Commit d6e17c9

Browse files
committed
add comments
1 parent 29e8187 commit d6e17c9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

llvm/include/llvm/BinaryFormat/Wasm.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,15 @@ struct WasmDebugName {
467467
StringRef Name;
468468
};
469469

470+
// Info from the linking metadata section of a wasm object file.
470471
struct WasmLinkingData {
471472
uint32_t Version;
472473
std::vector<WasmInitFunc> InitFunctions;
473474
std::vector<StringRef> Comdats;
475+
// The linking section also contains a symbol table. This info (represented
476+
// in a WasmSymbolInfo struct) is stored inside the WasmSymbol object instead
477+
// of in this structure; this allows vectors of WasmSymbols and
478+
// WasmLinkingDatas to be reallocated.
474479
};
475480

476481
struct WasmSignature {

llvm/include/llvm/Object/Wasm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class WasmSymbol {
4343
assert(!Signature || Signature->Kind != wasm::WasmSignature::Placeholder);
4444
}
4545

46+
// Symbol info as represented in the symbol's 'syminfo' entry of an object
47+
// file's symbol table.
4648
const wasm::WasmSymbolInfo Info;
4749
const wasm::WasmGlobalType *GlobalType;
4850
const wasm::WasmTableType *TableType;

0 commit comments

Comments
 (0)