forked from OSchip/llvm-project
parent
0282091c9f
commit
b23a20179a
|
@ -100,8 +100,8 @@ void WasmDumper::printRelocation(const SectionRef &Section,
|
|||
W.printNumber("Addend", WasmReloc.Addend);
|
||||
} else {
|
||||
raw_ostream& OS = W.startLine();
|
||||
OS << W.hex(Reloc.getOffset())
|
||||
<< " " << RelocTypeName << "[" << WasmReloc.Index << "]";
|
||||
OS << W.hex(Reloc.getOffset()) << " " << RelocTypeName << "["
|
||||
<< WasmReloc.Index << "]";
|
||||
if (HasAddend)
|
||||
OS << " " << WasmReloc.Addend;
|
||||
OS << "\n";
|
||||
|
@ -156,6 +156,12 @@ void WasmDumper::printSections() {
|
|||
if (WasmSec.Name == "linking") {
|
||||
const wasm::WasmLinkingData &LinkingData = Obj->linkingData();
|
||||
W.printNumber("DataSize", LinkingData.DataSize);
|
||||
if (!LinkingData.InitFunctions.empty()) {
|
||||
ListScope Group(W, "InitFunctions");
|
||||
for (const wasm::WasmInitFunc &F: LinkingData.InitFunctions)
|
||||
W.startLine() << F.FunctionIndex << " (priority=" << F.Priority
|
||||
<< ")\n";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case wasm::WASM_SEC_DATA: {
|
||||
|
|
Loading…
Reference in New Issue