[lldb/Reproducer] Add SBReproducer::Replay overload (again)

I modified the SBAPI under the assumption that nobody was using the old
API yet. However, that turns out to be false. So instead of adding the
deafault argument I've reintroduced the old API and made the new one an
overload.
This commit is contained in:
Jonas Devlieghere 2020-01-10 14:54:29 -08:00
parent 987bf8b6c1
commit d3ba1e026d
2 changed files with 6 additions and 1 deletions

View File

@ -20,7 +20,8 @@ class LLDB_API SBReproducer {
public:
static const char *Capture();
static const char *Capture(const char *path);
static const char *Replay(const char *path, bool skip_version_check = false);
static const char *Replay(const char *path);
static const char *Replay(const char *path, bool skip_version_check);
static const char *GetPath();
static bool Generate();
};

View File

@ -124,6 +124,10 @@ const char *SBReproducer::Capture(const char *path) {
return nullptr;
}
const char *SBReproducer::Replay(const char *path) {
return SBReproducer::Replay(path, false);
}
const char *SBReproducer::Replay(const char *path, bool skip_version_check) {
static std::string error;
if (auto e = Reproducer::Initialize(ReproducerMode::Replay, FileSpec(path))) {