summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-30 23:03:43 +0000
committerDevang Patel <dpatel@apple.com>2009-07-30 23:03:43 +0000
commitd14bacfb7abcb4caf7a7272eeb460aeb6b16cc89 (patch)
tree69b90f85fe8303ff53a2c2444249bd9cc75bc628 /llvm/lib/Bitcode/Writer
parentb292b8ce708d8d5fa4286f1bc2855d6ac0d0f526 (diff)
downloadbcm5719-llvm-d14bacfb7abcb4caf7a7272eeb460aeb6b16cc89.tar.gz
bcm5719-llvm-d14bacfb7abcb4caf7a7272eeb460aeb6b16cc89.zip
Enumerate NamedMDNode elements first.
llvm-svn: 77636
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
-rw-r--r--llvm/lib/Bitcode/Writer/ValueEnumerator.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
index a980e90dcfb..cf4a8761cbc 100644
--- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
@@ -222,15 +222,11 @@ void ValueEnumerator::EnumerateValue(const Value *V) {
}
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.
OpenPOWER on IntegriCloud