Make ValueEnumerator::print use OS for metadata too. Noticed by inspection.
authorNick Lewycky <nicholas@mxc.ca>
Wed, 17 Dec 2014 01:52:08 +0000 (01:52 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 17 Dec 2014 01:52:08 +0000 (01:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224404 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Writer/ValueEnumerator.cpp

index c90dfbd776abf4597d857ef1e246380fa9770dfc..2c0fdc00ba4ac0d482669adb500db509ca39509e 100644 (file)
@@ -459,7 +459,7 @@ void ValueEnumerator::print(raw_ostream &OS, const MetadataMapType &Map,
   for (auto I = Map.begin(), E = Map.end(); I != E; ++I) {
     const Metadata *MD = I->first;
     OS << "Metadata: slot = " << I->second << "\n";
   for (auto I = Map.begin(), E = Map.end(); I != E; ++I) {
     const Metadata *MD = I->first;
     OS << "Metadata: slot = " << I->second << "\n";
-    MD->dump();
+    MD->print(OS);
   }
 }
 
   }
 }
 
@@ -803,4 +803,3 @@ unsigned ValueEnumerator::getGlobalBasicBlockID(const BasicBlock *BB) const {
   IncorporateFunctionInfoGlobalBBIDs(BB->getParent(), GlobalBasicBlockIDs);
   return getGlobalBasicBlockID(BB);
 }
   IncorporateFunctionInfoGlobalBBIDs(BB->getParent(), GlobalBasicBlockIDs);
   return getGlobalBasicBlockID(BB);
 }
-