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

@@ -121,6 +121,9 @@ public:
void remap(std::vector<std::uint32_t>& spv, const std::vector<std::string>& whiteListStrings,
std::uint32_t opts = DO_EVERYTHING);
// remap on an existing binary in memory - legacy interface without white list
void remap(std::vector<std::uint32_t>& spv, std::uint32_t opts = DO_EVERYTHING);
// Type for error/log handler functions
typedef std::function<void(const std::string&)> errorfn_t;
typedef std::function<void(const std::string&)> logfn_t;