summaryrefslogtreecommitdiff
path: root/lib/IR
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
commit27be15cd36dda4410e1cef30beac9924bc8b6a99 (patch)
treeafe0c5ea6a5946d49b154677ade4c3b3053fb5f4 /lib/IR
parente12b0bbc023c2a204bae1b86ed548afa6fc6645f (diff)
downloadllvm-27be15cd36dda4410e1cef30beac9924bc8b6a99.tar.gz
llvm-27be15cd36dda4410e1cef30beac9924bc8b6a99.tar.bz2
llvm-27be15cd36dda4410e1cef30beac9924bc8b6a99.tar.xz
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
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Value.cpp b/lib/IR/Value.cpp
index f392512c3e..463024a28c 100644
--- a/lib/IR/Value.cpp
+++ b/lib/IR/Value.cpp
@@ -213,7 +213,7 @@ void Value::setName(const Twine &NewName) {
// then reallocated.
// Create the new name.
- Name = ValueName::Create(NameRef.begin(), NameRef.end());
+ Name = ValueName::Create(NameRef);
Name->setValue(this);
return;
}