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 | ce032b483ca96093b84f69178cdb2d047e124332 (patch) | |
tree | 786a371b3156bf0711bb6843d058d1392f268977 /lib/VMCore/LLVMContext.cpp | |
parent | b8e9ac834a9c253e3f8f5caa8f229bafba0b4fcf (diff) | |
download | external_llvm-ce032b483ca96093b84f69178cdb2d047e124332.zip external_llvm-ce032b483ca96093b84f69178cdb2d047e124332.tar.gz external_llvm-ce032b483ca96093b84f69178cdb2d047e124332.tar.bz2 |
Privatize the MDNode uniquing table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContext.cpp')
-rw-r--r-- | lib/VMCore/LLVMContext.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index 7bce6f5..f7f8add 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/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 |