[llvm-commits] [llvm] r77636 - /llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
Devang Patel
dpatel at apple.com
Thu Jul 30 16:03:43 PDT 2009
Author: dpatel
Date: Thu Jul 30 18:03:43 2009
New Revision: 77636
URL: http://llvm.org/viewvc/llvm-project?rev=77636&view=rev
Log:
Enumerate NamedMDNode elements first.
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=77636&r1=77635&r2=77636&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp Thu Jul 30 18:03:43 2009
@@ -222,15 +222,11 @@
}
if (const NamedMDNode *N = dyn_cast<NamedMDNode>(V)) {
- Values.push_back(std::make_pair(V, 1U));
- ValueMap[V] = Values.size();
- ValueID = Values.size();
for(NamedMDNode::const_elem_iterator I = N->elem_begin(),
E = N->elem_end(); I != E; ++I) {
MetadataBase *M = *I;
EnumerateValue(M);
}
- return;
}
// Add the value.
More information about the llvm-commits
mailing list