diff options
author | Jim Ingham <jingham@apple.com> | 2022-08-18 17:20:55 -0700 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2022-08-30 10:17:58 -0700 |
commit | 5ad6ed0e5519ed26442cd0a21cdb07f5c53b854e (patch) | |
tree | 9dd764d04cdd32d7fd17c6aca377f95801bd16cf /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | 52556c3c0f942cdb644e8548d9956b24bd9bba59 (diff) | |
download | llvm-5ad6ed0e5519ed26442cd0a21cdb07f5c53b854e.zip llvm-5ad6ed0e5519ed26442cd0a21cdb07f5c53b854e.tar.gz llvm-5ad6ed0e5519ed26442cd0a21cdb07f5c53b854e.tar.bz2 |
Change the meaning of a UUID with all zeros for data.
Previously, depending on how you constructed a UUID from data or a
StringRef, an input value of all zeros was valid (e.g. setFromData)
or not (e.g. setFromOptionalData). Since there was no way to tell
which interpretation to use, it was done somewhat inconsistently.
This standardizes the meaning of a UUID of all zeros to Not Valid,
and removes all the Optional methods and their uses, as well as the
static factories that supported them.
Differential Revision: https://reviews.llvm.org/D132191
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
-rw-r--r-- | lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp index b80c44d..80a9d98 100644 --- a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp +++ b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp @@ -194,7 +194,7 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo) { ASSERT_EQ(1u, result->size()); EXPECT_EQ("/foo/bar.so", result.value()[0].GetFileSpec().GetPath()); EXPECT_EQ(triple, result.value()[0].GetArchitecture().GetTriple()); - EXPECT_EQ(UUID::fromData("@ABCDEFGHIJKLMNO", 16), + EXPECT_EQ(UUID("@ABCDEFGHIJKLMNO", 16), result.value()[0].GetUUID()); EXPECT_EQ(0u, result.value()[0].GetObjectOffset()); EXPECT_EQ(1234u, result.value()[0].GetObjectSize()); @@ -219,7 +219,7 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo_UUID20) { ASSERT_EQ(1u, result->size()); EXPECT_EQ("/foo/bar.so", result.value()[0].GetFileSpec().GetPath()); EXPECT_EQ(triple, result.value()[0].GetArchitecture().GetTriple()); - EXPECT_EQ(UUID::fromData("@ABCDEFGHIJKLMNOPQRS", 20), + EXPECT_EQ(UUID("@ABCDEFGHIJKLMNOPQRS", 20), result.value()[0].GetUUID()); EXPECT_EQ(0u, result.value()[0].GetObjectOffset()); EXPECT_EQ(1234u, result.value()[0].GetObjectSize()); |