Details
- Reviewers
labath - Commits
- rG4348e0eee4dd: [lldb][NFC] Refactor getUUID functionality
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for cleaning this up. A couple of comments inline.
lldb/include/lldb/Utility/UUID.h | ||
---|---|---|
41 | I'd name this like fromCvRecord or something. Also, replace the pointer by a reference, please. | |
lldb/source/Plugins/Process/minidump/MinidumpParser.cpp | ||
76 | This is the only place which passes false, right? if (isBinFormatELF()) { // Older versions of breakpad used to write the (first 16 bytes of) ELF build into this field. return UUID::fromOptionalData(pdb70_uuid->Uuid, sizeof(pdb70_uuid->Uuid)) } return UUID::fromCvRecord(*pdb70_uuid); | |
lldb/source/Utility/UUID.cpp | ||
38 | You could just take the argument by value, and then byte-swap it in-place. |
lgtm, modulo the comment.
lldb/source/Plugins/Process/minidump/MinidumpParser.cpp | ||
---|---|---|
75 | Once the reference is gone, you also don't need to make a copy here. | |
lldb/source/Utility/UUID.cpp | ||
38 | My previous comments were a bit confusing, but taking the argument by a mutable reference, was not what I intended. :( Sorry. |
I'd name this like fromCvRecord or something. Also, replace the pointer by a reference, please.