From 3becf3dbb51c1f02ec0c3c30cb0e9ee8d8ef991d Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Mon, 6 Jun 2016 19:24:27 +0000 Subject: [PATCH] [GVN] Switch dump() definition over to LLVM_DUMP_METHOD. llvm-svn: 271932 --- lib/Transforms/Scalar/GVN.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 5236c526e75..ef9638b9aa0 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -597,7 +597,7 @@ PreservedAnalyses GVN::run(Function &F, AnalysisManager &AM) { return Changed ? PreservedAnalyses::none() : PreservedAnalyses::all(); } -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) +LLVM_DUMP_METHOD void GVN::dump(DenseMap& d) { errs() << "{\n"; for (DenseMap::iterator I = d.begin(), @@ -607,7 +607,6 @@ void GVN::dump(DenseMap& d) { } errs() << "}\n"; } -#endif /// Return true if we can prove that the value /// we're analyzing is fully available in the specified block. As we go, keep