[PATCH] D44600: Fix LLVMDumpType() #ifdefed
Brenton Bostick via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 19 05:35:18 PDT 2018
brenton updated this revision to Diff 138899.
brenton added a comment.
dump() method seems to have been removed.
Use LLVMDumpValue() as a model
Repository:
rL LLVM
https://reviews.llvm.org/D44600
Files:
lib/IR/Core.cpp
Index: lib/IR/Core.cpp
===================================================================
--- lib/IR/Core.cpp
+++ lib/IR/Core.cpp
@@ -368,11 +368,9 @@
return wrap(&unwrap(Ty)->getContext());
}
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD void LLVMDumpType(LLVMTypeRef Ty) {
- return unwrap(Ty)->dump();
+ return unwrap(Ty)->print(errs(), /*IsForDebug=*/true);
}
-#endif
char *LLVMPrintTypeToString(LLVMTypeRef Ty) {
std::string buf;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44600.138899.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180319/49ff3134/attachment.bin>
More information about the llvm-commits
mailing list