Convert StringMapEntry::Create to use StringRef instead of start/end pointers. Simpliies all in tree call sites. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210638 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2014-06-11 05:35:56 +00:00
parent e12b0bbc02
commit 27be15cd36
4 changed files with 15 additions and 18 deletions

View File

@@ -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);