forked from OSchip/llvm-project
[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:
parent
0098324947
commit
e128d53895
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue