From: Sam McCall Date: Mon, 30 Jan 2017 05:40:52 +0000 (+0000) Subject: Include LLVMDumpValue in release builds. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec19b49e1df502c873efd0f9af82b169988515a8;p=llvm Include LLVMDumpValue in release builds. This part of the C API is still used in language bindings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293460 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index 9ea1a90b00b..7236e4c454e 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -643,11 +643,9 @@ void LLVMSetValueName(LLVMValueRef Val, const char *Name) { 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;