How to build LLVM such that `llvm::Module::dump() const' is preserved?

The FreeBSD port for the Intel’s ISPC compiler fails to build because it can’t find this symbol:

Use -DLLVM_ENABLE_ASSERTIONS=ON, or -DLLVM_ENABLE_DUMP=ON with cmake.

-Krzysztof

Random question: how much code size do these #ifdefs actually save in non-assert builds? Is this still worth it at all? I suspect the time is long past that this makes sense.

-Chris

The FreeBSD port for the Intel’s ISPC compiler fails to build because it can’t find this symbol:

llvmutil.cpp:(.text+0x3d60): undefined reference to `llvm::Value::dump() const'

This is because devel/llvm* ports turned off assertions. I hope this change won’t be reverted due to this problem.