[lldb/Test] Don't friend std::make_unique

This wasn't a great idea to begin with, as you can't really rely on the
implementation, but since it also doesn't work with MSVC I've just made
the ctors public.
This commit is contained in:
Jonas Devlieghere 2020-04-20 11:33:35 -07:00
parent 0098324947
commit e128d53895
1 changed files with 1 additions and 7 deletions

View File

@ -73,7 +73,7 @@ inline TestInstrumentationData GetTestInstrumentationData() {
}
class TestInstrumentationDataRAII {
private:
public:
TestInstrumentationDataRAII(llvm::raw_string_ostream &os) {
g_registry.emplace();
g_serializer.emplace(os);
@ -86,12 +86,6 @@ private:
g_deserializer.emplace(buffer);
}
friend std::unique_ptr<TestInstrumentationDataRAII>
std::make_unique<TestInstrumentationDataRAII>(llvm::raw_string_ostream &os);
friend std::unique_ptr<TestInstrumentationDataRAII>
std::make_unique<TestInstrumentationDataRAII>(llvm::StringRef &buffer);
public:
~TestInstrumentationDataRAII() { Reset(); }
void Reset() {