summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2017-01-30 05:40:52 +0000
committerSam McCall <sam.mccall@gmail.com>2017-01-30 05:40:52 +0000
commita682dfb3e518ab0d4b0b7980d6bbb4a88885eb9b (patch)
tree5f59a42a2558c554942d83d8b8b79564f95259a4 /llvm/lib/IR/Core.cpp
parent3f71d6a38e7eabff47fa7900bd609b0fa64b1670 (diff)
downloadbcm5719-llvm-a682dfb3e518ab0d4b0b7980d6bbb4a88885eb9b.tar.gz
bcm5719-llvm-a682dfb3e518ab0d4b0b7980d6bbb4a88885eb9b.zip
Include LLVMDumpValue in release builds.
This part of the C API is still used in language bindings. llvm-svn: 293460
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r--llvm/lib/IR/Core.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 9ea1a90b00b..7236e4c454e 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud