[llvm] r226534 - Bitcode: WriteMDNode() => WriteMDTuple(), NFC
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Jan 19 17:01:53 PST 2015
Author: dexonsmith
Date: Mon Jan 19 19:01:53 2015
New Revision: 226534
URL: http://llvm.org/viewvc/llvm-project?rev=226534&view=rev
Log:
Bitcode: WriteMDNode() => WriteMDTuple(), NFC
Modified:
llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp?rev=226534&r1=226533&r2=226534&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp Mon Jan 19 19:01:53 2015
@@ -762,10 +762,9 @@ static void WriteValueAsMetadata(const V
Record.clear();
}
-static void WriteMDNode(const MDNode *N,
- const ValueEnumerator &VE,
- BitstreamWriter &Stream,
- SmallVectorImpl<uint64_t> &Record) {
+static void WriteMDTuple(const MDTuple *N, const ValueEnumerator &VE,
+ BitstreamWriter &Stream,
+ SmallVectorImpl<uint64_t> &Record) {
for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i) {
Metadata *MD = N->getOperand(i);
assert(!(MD && isa<LocalAsMetadata>(MD)) &&
@@ -844,7 +843,7 @@ static void WriteModuleMetadata(const Mo
continue;
}
if (const MDNode *N = dyn_cast<MDNode>(MD)) {
- WriteMDNode(N, VE, Stream, Record);
+ WriteMDTuple(cast<MDTuple>(N), VE, Stream, Record);
continue;
}
if (const auto *MDC = dyn_cast<ConstantAsMetadata>(MD)) {
More information about the llvm-commits
mailing list