Replace bool+by-ref argument with llvm::Optional, and move the common
implementation into HostInfoPOSIX. Based on my (simple) experiment,
the uname and the sysctl approach return the same value on MacOS, so
there's no need for a mac-specific implementation of this functionality.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/include/lldb/Host/posix/HostInfoPosix.h | ||
---|---|---|
25 | I forgot to amend the implementation into the patch. Thanks for catching that. | |
lldb/source/Target/Platform.cpp | ||
495–496 | A lot of this code is only built/tested on some platforms, so I wanted to do that as a followup -- to reduce the number of moving parts. I also did GetOSBuildString in two parts, and both parts managed to break something. |
lldb/source/Host/posix/HostInfoPosix.cpp | ||
---|---|---|
44 | I'm somewhat surprised that you need to do that. I wonder if there was a real reason why it's done or just someone being overly careful. |
Remove memset
lldb/source/Host/posix/HostInfoPosix.cpp | ||
---|---|---|
44 | I'm pretty sure it isn't necessary. |
Ok, I must be missing something but I don't see the implementation of this in this patch.