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() {} _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits