diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-16 23:44:30 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-16 23:44:30 +0000 |
commit | 4118ddeeeda50e0f1767a255bee0a91b4f4e5885 (patch) | |
tree | 42167253dc1a5175106c9432a25e40aff334f4d9 /llvm/lib/VMCore/LLVMContext.cpp | |
parent | a3f41f4bbaf080a3b693c8d4a0cfa3f40e8ed42e (diff) | |
download | bcm5719-llvm-4118ddeeeda50e0f1767a255bee0a91b4f4e5885.tar.gz bcm5719-llvm-4118ddeeeda50e0f1767a255bee0a91b4f4e5885.zip |
Privatize the MDNode uniquing table.
llvm-svn: 76126
Diffstat (limited to 'llvm/lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/VMCore/LLVMContext.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/LLVMContext.cpp b/llvm/lib/VMCore/LLVMContext.cpp index 7bce6f55da7..f7f8addbe80 100644 --- a/llvm/lib/VMCore/LLVMContext.cpp +++ b/llvm/lib/VMCore/LLVMContext.cpp @@ -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); }
\ No newline at end of file |