Restore legacy interface for remap()

Fixes ABI breakage caused by #2933
This commit is contained in:
Greg Fischer 2022-06-01 16:40:29 -06:00
parent 4c3e00bf96
commit 9e2b914722
2 changed files with 12 additions and 0 deletions

View file

@ -1517,6 +1517,15 @@ namespace spv {
spv.swap(in_spv);
}
// remap from a memory image - legacy interface without white list
void spirvbin_t::remap(std::vector<std::uint32_t>& in_spv, std::uint32_t opts)
{
stripWhiteList.clear();
spv.swap(in_spv);
remap(opts);
spv.swap(in_spv);
}
} // namespace SPV
#endif // defined (use_cpp11)