Skip to content

Commit d3ba1e0

Browse files
committed
[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.
1 parent 987bf8b commit d3ba1e0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lldb/include/lldb/API/SBReproducer.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class LLDB_API SBReproducer {
2020
public:
2121
static const char *Capture();
2222
static const char *Capture(const char *path);
23-
static const char *Replay(const char *path, bool skip_version_check = false);
23+
static const char *Replay(const char *path);
24+
static const char *Replay(const char *path, bool skip_version_check);
2425
static const char *GetPath();
2526
static bool Generate();
2627
};

lldb/source/API/SBReproducer.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ const char *SBReproducer::Capture(const char *path) {
124124
return nullptr;
125125
}
126126

127+
const char *SBReproducer::Replay(const char *path) {
128+
return SBReproducer::Replay(path, false);
129+
}
130+
127131
const char *SBReproducer::Replay(const char *path, bool skip_version_check) {
128132
static std::string error;
129133
if (auto e = Reproducer::Initialize(ReproducerMode::Replay, FileSpec(path))) {

0 commit comments

Comments
 (0)