From 213d2f79e5082290c318f2c8498664bb81f7e06b Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 11 Jun 2014 05:35:56 +0000 Subject: Convert StringMapEntry::Create to use StringRef instead of start/end pointers. Simpliies all in tree call sites. No functional change. llvm-svn: 210638 --- llvm/lib/Support/StringPool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/StringPool.cpp') diff --git a/llvm/lib/Support/StringPool.cpp b/llvm/lib/Support/StringPool.cpp index ff607cf8c4a..76faabc92bb 100644 --- a/llvm/lib/Support/StringPool.cpp +++ b/llvm/lib/Support/StringPool.cpp @@ -27,7 +27,7 @@ PooledStringPtr StringPool::intern(StringRef Key) { if (I != InternTable.end()) return PooledStringPtr(&*I); - entry_t *S = entry_t::Create(Key.begin(), Key.end()); + entry_t *S = entry_t::Create(Key); S->getValue().Pool = this; InternTable.insert(S); -- cgit v1.2.3