[PATCH] D38406: [dump] Make LLVM_ENABLE_DUMP independent, and move to llvm-config.h

Don Hinton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 00:44:43 PST 2017


hintonda added inline comments.


================
Comment at: CMakeLists.txt:396-398
-if( LLVM_ENABLE_ASSERTIONS )
-  set(LLVM_ENABLE_DUMP ON)
-endif()
----------------
bogner wrote:
> Since everything checks both currently it doesn't actually have an effect, but I think we should leave this in place for now. It more accurately reflects our intent.
I added this in D38306 based on the assumption that we could remove the NDEBUG test and just use the LLVM_ENABLE_DUMP test for dump definitions -- and other related functions.

However, that turned out to be a bad idea.  So I think this should removed.  Especially since it leaves the reader with the impression that you need to do it, which is false.

The only good thing about it is that it doesn't update the cache, so it's wrong but innocuous.


https://reviews.llvm.org/D38406





More information about the llvm-commits mailing list