aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-16 22:11:26 +0000
committerOwen Anderson <resistor@mac.com>2009-07-16 22:11:26 +0000
commitfb673735323c41ff1d7f71a7864596be570b2c07 (patch)
tree78ad3b3efe4d503fc275adfe42a0102d52a78587 /lib/VMCore/LLVMContext.cpp
parent9c69e28556a520f0fa6346ac0666445518e15970 (diff)
downloadexternal_llvm-fb673735323c41ff1d7f71a7864596be570b2c07.zip
external_llvm-fb673735323c41ff1d7f71a7864596be570b2c07.tar.gz
external_llvm-fb673735323c41ff1d7f71a7864596be570b2c07.tar.bz2
Privatize the MDString uniquing table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContext.cpp')
-rw-r--r--lib/VMCore/LLVMContext.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp
index c869ab0..7bce6f5 100644
--- a/lib/VMCore/LLVMContext.cpp
+++ b/lib/VMCore/LLVMContext.cpp
@@ -548,11 +548,11 @@ MDNode* LLVMContext::getMDNode(Value* const* Vals, unsigned NumVals) {
// MDString accessors
MDString* LLVMContext::getMDString(const char *StrBegin, const char *StrEnd) {
- return MDString::get(StrBegin, StrEnd);
+ return pImpl->getMDString(StrBegin, StrEnd);
}
MDString* LLVMContext::getMDString(const std::string &Str) {
- return MDString::get(Str);
+ return getMDString(Str.data(), Str.data()+Str.size());
}
// FunctionType accessors
@@ -637,3 +637,7 @@ const Type* LLVMContext::makeCmpResultType(const Type* opnd_type) {
}
return Type::Int1Ty;
}
+
+void LLVMContext::erase(MDString *M) {
+ pImpl->erase(M);
+} \ No newline at end of file