[llvm] r224404 - Make ValueEnumerator::print use OS for metadata too. Noticed by inspection.
Nick Lewycky
nicholas at mxc.ca
Tue Dec 16 17:52:08 PST 2014
Author: nicholas
Date: Tue Dec 16 19:52:08 2014
New Revision: 224404
URL: http://llvm.org/viewvc/llvm-project?rev=224404&view=rev
Log:
Make ValueEnumerator::print use OS for metadata too. Noticed by inspection.
Modified:
llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp?rev=224404&r1=224403&r2=224404&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp Tue Dec 16 19:52:08 2014
@@ -459,7 +459,7 @@ void ValueEnumerator::print(raw_ostream
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::getGlobalBasic
IncorporateFunctionInfoGlobalBBIDs(BB->getParent(), GlobalBasicBlockIDs);
return getGlobalBasicBlockID(BB);
}
-
More information about the llvm-commits
mailing list