[Lldb-commits] [lldb] r363228 - [Reproducers] Remove call to lldb_private::GetVersion()
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 12 22:14:25 PDT 2019
Author: jdevlieghere
Date: Wed Jun 12 22:14:25 2019
New Revision: 363228
URL: http://llvm.org/viewvc/llvm-project?rev=363228&view=rev
Log:
[Reproducers] Remove call to lldb_private::GetVersion()
Utility doesn't link against lldbBase so we cannot call GetVersion in
keep. I already added a string member m_version to deal with that, but
the call was still there.
Modified:
lldb/trunk/source/Utility/Reproducer.cpp
Modified: lldb/trunk/source/Utility/Reproducer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/Reproducer.cpp?rev=363228&r1=363227&r2=363228&view=diff
==============================================================================
--- lldb/trunk/source/Utility/Reproducer.cpp (original)
+++ lldb/trunk/source/Utility/Reproducer.cpp Wed Jun 12 22:14:25 2019
@@ -8,7 +8,6 @@
#include "lldb/Utility/Reproducer.h"
#include "lldb/Utility/LLDBAssert.h"
-#include "lldb/lldb-private.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Threading.h"
@@ -270,7 +269,7 @@ void VersionProvider::Keep() {
llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::F_Text);
if (ec)
return;
- os << lldb_private::GetVersion() << "\n";
+ os << m_version << "\n";
}
void ProviderBase::anchor() {}
More information about the lldb-commits
mailing list