19  auto Obj = std::make_unique<Object>();
 
   20  Obj->Header = WasmObj.getHeader();
 
   21  Obj->isRelocatableObject = WasmObj.isRelocatableObject();
 
   22  Obj->Sections.reserve(WasmObj.getNumSections());
 
   23  for (
const SectionRef &Sec : WasmObj.sections()) {
 
   24    const WasmSection &WS = WasmObj.getWasmSection(Sec);
 
   25    Obj->Sections.push_back({
static_cast<uint8_t>(WS.
Type),
 
   29    Section &ReaderSec = Obj->Sections.back();
 
   34  return std::move(Obj);