OSDN Git Service

[GVN] Switch dump() definition over to LLVM_DUMP_METHOD.
authorDavide Italiano <davide@freebsd.org>
Mon, 6 Jun 2016 19:24:27 +0000 (19:24 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 6 Jun 2016 19:24:27 +0000 (19:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271932 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GVN.cpp

index 5236c52..ef9638b 100644 (file)
@@ -597,7 +597,7 @@ PreservedAnalyses GVN::run(Function &F, AnalysisManager<Function> &AM) {
   return Changed ? PreservedAnalyses::none() : PreservedAnalyses::all();
 }
 
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+LLVM_DUMP_METHOD
 void GVN::dump(DenseMap<uint32_t, Value*>& d) {
   errs() << "{\n";
   for (DenseMap<uint32_t, Value*>::iterator I = d.begin(),
@@ -607,7 +607,6 @@ void GVN::dump(DenseMap<uint32_t, Value*>& 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