From e03eecb75f2f56a76cb3c20cb68c5edf358ea409 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 25 Jul 2009 23:55:21 +0000 Subject: Remove Value::{isName, getNameRef}. Also, change MDString to use a StringRef. llvm-svn: 77098 --- llvm/lib/VMCore/LLVMContextImpl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/VMCore/LLVMContextImpl.cpp') diff --git a/llvm/lib/VMCore/LLVMContextImpl.cpp b/llvm/lib/VMCore/LLVMContextImpl.cpp index 8e6c7778b95..edd76fc031b 100644 --- a/llvm/lib/VMCore/LLVMContextImpl.cpp +++ b/llvm/lib/VMCore/LLVMContextImpl.cpp @@ -188,8 +188,7 @@ Constant *LLVMContextImpl::getConstantVector(const VectorType *Ty, void LLVMContextImpl::erase(MDString *M) { sys::SmartScopedWriter Writer(ConstantsLock); - MDStringCache.erase(MDStringCache.find(StringRef(M->StrBegin, - M->length()))); + MDStringCache.erase(MDStringCache.find(M->getString())); } void LLVMContextImpl::erase(MDNode *M) { -- cgit v1.2.3