llvm.org GIT mirror llvm / 44b9704
[llvm-readobj] Dump wasm init functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321042 91177308-0d34-0410-b5e6-96231b3b80d8 Sam Clegg 2 years ago
1 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
9999 W.printNumber("Addend", WasmReloc.Addend);
100100 } else {
101101 raw_ostream& OS = W.startLine();
102 OS << W.hex(Reloc.getOffset())
103 << " " << RelocTypeName << "[" << WasmReloc.Index << "]";
102 OS << W.hex(Reloc.getOffset()) << " " << RelocTypeName << "["
103 << WasmReloc.Index << "]";
104104 if (HasAddend)
105105 OS << " " << WasmReloc.Addend;
106106 OS << "\n";
155155 if (WasmSec.Name == "linking") {
156156 const wasm::WasmLinkingData &LinkingData = Obj->linkingData();
157157 W.printNumber("DataSize", LinkingData.DataSize);
158 if (!LinkingData.InitFunctions.empty()) {
159 ListScope Group(W, "InitFunctions");
160 for (const wasm::WasmInitFunc &F: LinkingData.InitFunctions)
161 W.startLine() << F.FunctionIndex << " (priority=" << F.Priority
162 << ")\n";
163 }
158164 }
159165 break;
160166 case wasm::WASM_SEC_DATA: {