From ec19b49e1df502c873efd0f9af82b169988515a8 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Mon, 30 Jan 2017 05:40:52 +0000 Subject: [PATCH] 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 --- lib/IR/Core.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.40.0