aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Utility/Reproducer.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-08-25 12:49:30 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-08-25 13:00:04 -0700
commit521220690ab7741e382344319b2a9d458be3eb41 (patch)
tree4b013adf5b2ce1c9300ca0c6eab2d069d521ab7a /lldb/source/Utility/Reproducer.cpp
parent97ccf93b3615ff4c0d5fe116e6a7c7b616d8ec0c (diff)
downloadllvm-521220690ab7741e382344319b2a9d458be3eb41.tar.gz
llvm-521220690ab7741e382344319b2a9d458be3eb41.tar.bz2
llvm-521220690ab7741e382344319b2a9d458be3eb41.zip
[lldb] Make Reproducer compatbile with SubsystemRAII (NFC)
Make Reproducer compatbile with SubsystemRAII and use it in LocateSymbolFileTest.
Diffstat (limited to 'lldb/source/Utility/Reproducer.cpp')
-rw-r--r--lldb/source/Utility/Reproducer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Utility/Reproducer.cpp b/lldb/source/Utility/Reproducer.cpp
index 9276c7449d7b..68c64195f55e 100644
--- a/lldb/source/Utility/Reproducer.cpp
+++ b/lldb/source/Utility/Reproducer.cpp
@@ -73,6 +73,10 @@ llvm::Error Reproducer::Initialize(ReproducerMode mode,
return Error::success();
}
+void Reproducer::Initialize() {
+ llvm::cantFail(Initialize(repro::ReproducerMode::Off, llvm::None));
+}
+
bool Reproducer::Initialized() { return InstanceImpl().operator bool(); }
void Reproducer::Terminate() {