diff options
author | Stephane Sezer <sas@cd80.net> | 2017-11-28 01:26:07 +0000 |
---|---|---|
committer | Stephane Sezer <sas@cd80.net> | 2017-11-28 01:26:07 +0000 |
commit | b108dbcc91d1008b9ee9d945298f53434c9a0cb9 (patch) | |
tree | cc9f74636ac4fd5812162f5c48cce35201ed1c74 | |
parent | c06f55e1e8c09c779d6dedae84490f25cdc9f4ac (diff) | |
download | bcm5719-llvm-b108dbcc91d1008b9ee9d945298f53434c9a0cb9.tar.gz bcm5719-llvm-b108dbcc91d1008b9ee9d945298f53434c9a0cb9.zip |
Remove some duplicated code in UUID.cpp
Summary: Formatting needs to be done only once. Ran check-lldb and nothing changes.
Reviewers: clayborg, davide
Reviewed By: clayborg, davide
Subscribers: zturner, davide, lldb-commits
Differential Revision: https://reviews.llvm.org/D40519
llvm-svn: 319132
-rw-r--r-- | lldb/source/Utility/UUID.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lldb/source/Utility/UUID.cpp b/lldb/source/Utility/UUID.cpp index 1b5d24a1f8f..da7a8446b69 100644 --- a/lldb/source/Utility/UUID.cpp +++ b/lldb/source/Utility/UUID.cpp @@ -74,14 +74,7 @@ std::string UUID::GetAsString(const char *separator) const { } void UUID::Dump(Stream *s) const { - const uint8_t *u = (const uint8_t *)GetBytes(); - s->Printf("%2.2X%2.2X%2.2X%2.2X-%2.2X%2.2X-%2.2X%2.2X-%2.2X%2.2X-%2.2X%2.2X%" - "2.2X%2.2X%2.2X%2.2X", - u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], u[8], u[9], u[10], - u[11], u[12], u[13], u[14], u[15]); - if (m_num_uuid_bytes == 20) { - s->Printf("-%2.2X%2.2X%2.2X%2.2X", u[16], u[17], u[18], u[19]); - } + s->PutCString(GetAsString().c_str()); } bool UUID::SetBytes(const void *uuid_bytes, uint32_t num_uuid_bytes) { |