Include LLVMDumpValue in release builds.
This part of the C API is still used in language bindings.
llvm-svn: 293460
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 9ea1a90..7236e4c 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -643,11 +643,9 @@
unwrap(Val)->setName(Name);
}
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD void LLVMDumpValue(LLVMValueRef Val) {
- unwrap(Val)->dump();
+ unwrap(Val)->print(errs(), /*IsForDebug=*/true);
}
-#endif
char* LLVMPrintValueToString(LLVMValueRef Val) {
std::string buf;