]> granicus.if.org Git - clang/commitdiff
Removing debug printing logic from UninitializedValuesV2.
authorTed Kremenek <kremenek@apple.com>
Thu, 20 Jan 2011 21:25:34 +0000 (21:25 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 20 Jan 2011 21:25:34 +0000 (21:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123944 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/UninitializedValuesV2.cpp

index 121dcf909e423681f41290c255d1ad768d39b421..dfaff314e2f92f5ceef2b2a11a28fd36f0260d3c 100644 (file)
@@ -185,19 +185,6 @@ BVPair CFGBlockValues::getPredBitVectors(const clang::CFGBlock *block) {
   return BVPair(&bvA, &getBitVector(*itr, block));
 }
 
-
-static void printVector(const CFGBlock *block, llvm::BitVector &bv,
-                        unsigned num) {
-  
-  #if 0
-  llvm::errs() << block->getBlockID() << " :";
-  for (unsigned i = 0; i < bv.size(); ++i) {
-    llvm::errs() << ' ' << bv[i];
-  }
-  llvm::errs() << " : " << num << '\n';
-  #endif
-}
-
 void CFGBlockValues::mergeIntoScratch(llvm::BitVector const &source,
                                       bool isFirst) {
   if (isFirst)
@@ -212,7 +199,6 @@ bool CFGBlockValues::updateBitVectorWithScratch(const CFGBlock *block) {
   if (changed)
     dst = scratch;
   
-  printVector(block, scratch, 0);
   return changed;
 }
 
@@ -223,8 +209,6 @@ bool CFGBlockValues::updateBitVectors(const CFGBlock *block,
                  *newVals.second != *vals.second;
   *vals.first = *newVals.first;
   *vals.second = *newVals.second;
-  printVector(block, *vals.first, 1);
-  printVector(block, *vals.second, 2);
   return changed;
 }