These conditions appear to always be true.
@clayborg do you remember the reason why these exist?
Differential D58838
Remove tautological #ifdefs aprantl on Mar 1 2019, 10:33 AM. Authored by
Details
Diff Detail
Event TimelineComment Actions LLDB_CONFIGURATION_BUILD_AND_INTEGRATION doesn't have them. So you can change these to #if !defined(LLDB_CONFIGURATION_BUILD_AND_INTEGRATION) Comment Actions I think we mostly wanted to catch these in the test suite. Probably best to convert to lldbassert Comment Actions But I'm sure that LLDB_CONFIGURATION_BUILD_AND_INTEGRATION also defines NDEBUG so the assert should be a noop, right? Comment Actions This doesn't apply to DieStack since it isn't an assert, but DieStack is dead code anyway... Comment Actions Yea it would be nice if we could remove all of the LLDB_CONFIGURATION_xxx macros and just use either the LLVM ones or standard ones such as NDEBUG Comment Actions I generally agree with this, but we need to decide what to do on a case-by-case basis. So far I found four categories of LLDB_CONFIGURATION_DEBUG
there may be other cases that I haven't found yet. Comment Actions Also I should note that we can only use LLVM defines that are provided by the Xcode project until we reach the point where Apple builds LLDB with CMake and the CMake-generated Xcode file is good enough to replace the hand-written one. This is a transitional restriction, but it's a longer project... Comment Actions Additional logging should really go through the Verbose version of whatever log channel is appropriate. The additional code won't get run in the normal logging case, so there's no reason to throw it away. |