LLVM includes this header unconditionally on all platforms
(including Windows), so this define should no longer be necessary.
No behavior change.
Paths
| Differential D107338
[lldb] Get rid of HAVE_SYS_TYPES_H ClosedPublic Authored by thakis on Aug 3 2021, 3:56 AM.
Details
Summary LLVM includes this header unconditionally on all platforms No behavior change.
Diff Detail
Event TimelineComment Actions Remove Config.h include from driver/Platform.h. Platform.h only gets included in 5 files, and I checked that none of those need Config.h. Comment Actions In LLVM, this was removed in https://reviews.llvm.org/rG37f69de11b8c1810e29851430da317db5c1350a9 in 2013. Comment Actions Thanks! This LGTM itself, but I would prefer if we could remove that define in this commit and remove the redundant Config.h includes in another (so, the first version of this patch LGTM). Removing Config.h is always a bit icky as it will just silently disable all the #if feature code in case it's actually needed. IIUC you checked all the including files, but there are also downstream folks who will have probably an easier time bisecting potential fallout from this when it's a dedicated commit with a clear '[lldb] Remove redundant Config.h includes' as a title. (Also unrelated: I think quite a few of the files here don't actually need anything from sys/types.h? We could probably just remove a bunch of this stuff all-together as a followup) This revision is now accepted and ready to land.Aug 3 2021, 4:24 AM Closed by commit rGbf3383501fef: [lldb] Get rid of HAVE_SYS_TYPES_H (authored by thakis). · Explain WhyAug 3 2021, 1:15 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 363858 lldb/cmake/modules/LLDBGenerateConfig.cmake
lldb/include/lldb/Host/Config.h.cmake
lldb/include/lldb/Host/windows/PosixApi.h
lldb/source/Expression/UserExpression.cpp
lldb/source/Expression/UtilityFunction.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp
lldb/tools/driver/Platform.h
|