llvm.org GIT mirror llvm / f3f7937
[WebAssembly] Add more details to llvm-readobj for wasm files Differential Revision: https://reviews.llvm.org/D35208 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307588 91177308-0d34-0410-b5e6-96231b3b80d8 Sam Clegg 2 years ago
2 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
560560 WASM-NEXT: Size: 22
561561 WASM-NEXT: Offset: 257
562562 WASM-NEXT: Name: linking
563 WASM-NEXT: DataSize: 13
564 WASM-NEXT: DataAlignment: 1
563565 WASM-NEXT: }
564566 WASM-NEXT: ]
152152 switch (WasmSec.Type) {
153153 case wasm::WASM_SEC_CUSTOM:
154154 W.printString("Name", WasmSec.Name);
155 if (WasmSec.Name == "linking") {
156 const wasm::WasmLinkingData &LinkingData = Obj->linkingData();
157 W.printNumber("DataSize", LinkingData.DataSize);
158 if (LinkingData.DataAlignment)
159 W.printNumber("DataAlignment", LinkingData.DataAlignment);
160 }
155161 break;
156162 case wasm::WASM_SEC_MEMORY:
157163 ListScope Group(W, "Memories");