mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Introduce MetadataBase, a base class for MDString and MDNode.
Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -259,10 +259,14 @@ void ValueEnumerator::EnumerateOperandType(const Value *V) {
|
||||
EnumerateOperandType(C->getOperand(i));
|
||||
|
||||
if (const MDNode *N = dyn_cast<MDNode>(V)) {
|
||||
for (unsigned i = 0, e = N->getNumElements(); i != e; ++i)
|
||||
EnumerateOperandType(N->getElement(i));
|
||||
for (unsigned i = 0, e = N->getNumElements(); i != e; ++i) {
|
||||
Value *Elem = N->getElement(i);
|
||||
if (Elem)
|
||||
EnumerateOperandType(Elem);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (const MDString *MDS = dyn_cast<MDString>(V))
|
||||
EnumerateValue(V);
|
||||
}
|
||||
|
||||
void ValueEnumerator::EnumerateAttributes(const AttrListPtr &PAL) {
|
||||
|
Reference in New Issue
Block a user