Packer *PackMaster::getUnpacker(InputFile *f) { Packer *pp = visitAllPackers(try_unpack, f, opt, f); if (!pp) throwNotPacked(); pp->assertPacker(); return pp; }
Packer *PackMaster::getPacker(InputFile *f) { Packer *pp = visitAllPackers(try_pack, f, opt, f); if (!pp) throwUnknownExecutableFormat(); pp->assertPacker(); return pp; }