forked from OSchip/llvm-project
parent
108b522912
commit
2c6c743039
|
@ -105,7 +105,7 @@ struct LLVMContextImpl {
|
||||||
|
|
||||||
ValueMap<char, Type, ConstantAggregateZero> AggZeroConstants;
|
ValueMap<char, Type, ConstantAggregateZero> AggZeroConstants;
|
||||||
|
|
||||||
ValueMap<std::vector<Value*>, Type, MDNode> MDNodeSet;
|
ValueMap<std::vector<Value*>, Type, MDNode> MDNodes;
|
||||||
|
|
||||||
typedef ValueMap<std::vector<Constant*>, ArrayType,
|
typedef ValueMap<std::vector<Constant*>, ArrayType,
|
||||||
ConstantArray, true /*largekey*/> ArrayConstantsTy;
|
ConstantArray, true /*largekey*/> ArrayConstantsTy;
|
||||||
|
|
|
@ -83,7 +83,7 @@ MDNode *MDNode::get(LLVMContext &Context, Value*const* Vals, unsigned NumVals) {
|
||||||
for (unsigned i = 0; i < NumVals; ++i)
|
for (unsigned i = 0; i < NumVals; ++i)
|
||||||
V.push_back(Vals[i]);
|
V.push_back(Vals[i]);
|
||||||
|
|
||||||
return pImpl->MDNodeSet.getOrCreate(Type::MetadataTy, V);
|
return pImpl->MDNodes.getOrCreate(Type::MetadataTy, V);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// dropAllReferences - Remove all uses and clear node vector.
|
/// dropAllReferences - Remove all uses and clear node vector.
|
||||||
|
|
Loading…
Reference in New Issue