diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-10 14:54:29 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-10 15:02:21 -0800 |
| commit | d3ba1e026dbc44e9097ce6ea1c92d065f1fe33e8 (patch) | |
| tree | 75f10ba1b306a5b0f67cce1d70deee3050181dbe /lldb | |
| parent | 987bf8b6c14613da907fa78330415e266b97a036 (diff) | |
| download | bcm5719-llvm-d3ba1e026dbc44e9097ce6ea1c92d065f1fe33e8.tar.gz bcm5719-llvm-d3ba1e026dbc44e9097ce6ea1c92d065f1fe33e8.zip | |
[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.
Diffstat (limited to 'lldb')
| -rw-r--r-- | lldb/include/lldb/API/SBReproducer.h | 3 | ||||
| -rw-r--r-- | lldb/source/API/SBReproducer.cpp | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lldb/include/lldb/API/SBReproducer.h b/lldb/include/lldb/API/SBReproducer.h index 8bb530a0fe4..93d78f55fd7 100644 --- a/lldb/include/lldb/API/SBReproducer.h +++ b/lldb/include/lldb/API/SBReproducer.h @@ -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(); }; diff --git a/lldb/source/API/SBReproducer.cpp b/lldb/source/API/SBReproducer.cpp index 1107161a419..3d2de072744 100644 --- a/lldb/source/API/SBReproducer.cpp +++ b/lldb/source/API/SBReproducer.cpp @@ -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))) { |

