summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/StringPool.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-06-11 05:35:56 +0000
committerCraig Topper <craig.topper@gmail.com>2014-06-11 05:35:56 +0000
commit213d2f79e5082290c318f2c8498664bb81f7e06b (patch)
treed6dc3fde2277ff8104ef6de42396485d6c6bc285 /llvm/lib/Support/StringPool.cpp
parent6a729c64e0eb168e26f6377002b884f748d48333 (diff)
downloadbcm5719-llvm-213d2f79e5082290c318f2c8498664bb81f7e06b.tar.gz
bcm5719-llvm-213d2f79e5082290c318f2c8498664bb81f7e06b.zip
Convert StringMapEntry::Create to use StringRef instead of start/end pointers. Simpliies all in tree call sites. No functional change.
llvm-svn: 210638
Diffstat (limited to 'llvm/lib/Support/StringPool.cpp')
-rw-r--r--llvm/lib/Support/StringPool.cpp2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud