summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit213d2f79e5082290c318f2c8498664bb81f7e06b (patch)
treed6dc3fde2277ff8104ef6de42396485d6c6bc285 /llvm/lib/IR
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/IR')
-rw-r--r--llvm/lib/IR/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index f392512c3e9..463024a28c7 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud