summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContextImpl.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-25 23:55:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-25 23:55:21 +0000
commite03eecb75f2f56a76cb3c20cb68c5edf358ea409 (patch)
tree8df9abe0205da6cc0a8aa3ecfc022b1eeb210a0e /llvm/lib/VMCore/LLVMContextImpl.cpp
parentea086c72631ad414be00ab049d53fc0e51b67e94 (diff)
downloadbcm5719-llvm-e03eecb75f2f56a76cb3c20cb68c5edf358ea409.tar.gz
bcm5719-llvm-e03eecb75f2f56a76cb3c20cb68c5edf358ea409.zip
Remove Value::{isName, getNameRef}.
Also, change MDString to use a StringRef. llvm-svn: 77098
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.cpp')
-rw-r--r--llvm/lib/VMCore/LLVMContextImpl.cpp3
1 files changed, 1 insertions, 2 deletions
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<true> Writer(ConstantsLock);
- MDStringCache.erase(MDStringCache.find(StringRef(M->StrBegin,
- M->length())));
+ MDStringCache.erase(MDStringCache.find(M->getString()));
}
void LLVMContextImpl::erase(MDNode *M) {
OpenPOWER on IntegriCloud