Privatize the MDNode uniquing table.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson
2009-07-16 23:44:30 +00:00
parent b8e9ac834a
commit ce032b483c
6 changed files with 49 additions and 33 deletions

View File

@@ -543,7 +543,7 @@ Constant* LLVMContext::getConstantVector(Constant* const* Vals,
// MDNode accessors
MDNode* LLVMContext::getMDNode(Value* const* Vals, unsigned NumVals) {
return MDNode::get(Vals, NumVals);
return pImpl->getMDNode(Vals, NumVals);
}
// MDString accessors
@@ -640,4 +640,8 @@ const Type* LLVMContext::makeCmpResultType(const Type* opnd_type) {
void LLVMContext::erase(MDString *M) {
pImpl->erase(M);
}
void LLVMContext::erase(MDNode *M) {
pImpl->erase(M);
}