18 auto Obj = std::make_unique<Object>();
19 Obj->Header = DXContainerObj.getHeader();
23 if (
auto E = Name.takeError())
25 assert(Name->size() == 4 &&
26 "Valid DXIL Part name consists of 4 characters");
28 DXContainerObj.getSectionContents(PartDRI);
29 if (
auto E =
Data.takeError())
31 Obj->Parts.push_back({*Name, *
Data});
33 return std::move(Obj);