summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-07-04 14:12:46 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-07-04 14:12:46 +0000
commitf98536a04638b2ba4662e11b12b29ea8d7e1aa25 (patch)
tree5df3413eba9bb542613c4fc1cd1e68c920049216 /llvm/lib/LTO
parentd346cc8efc614c5598476a9388b3f120b98d92c0 (diff)
downloadbcm5719-llvm-f98536a04638b2ba4662e11b12b29ea8d7e1aa25.tar.gz
bcm5719-llvm-f98536a04638b2ba4662e11b12b29ea8d7e1aa25.zip
Convert a few std::strings to StringRef.
llvm-svn: 212342
Diffstat (limited to 'llvm/lib/LTO')
-rw-r--r--llvm/lib/LTO/LTOModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTOModule.cpp b/llvm/lib/LTO/LTOModule.cpp
index 961c759e84c..589ce2dd810 100644
--- a/llvm/lib/LTO/LTOModule.cpp
+++ b/llvm/lib/LTO/LTOModule.cpp
@@ -70,8 +70,8 @@ bool LTOModule::isBitcodeFile(const char *path) {
bool LTOModule::isBitcodeForTarget(MemoryBuffer *buffer,
StringRef triplePrefix) {
- std::string Triple = getBitcodeTargetTriple(buffer, getGlobalContext());
- return StringRef(Triple).startswith(triplePrefix);
+ StringRef Triple = getBitcodeTargetTriple(buffer, getGlobalContext());
+ return Triple.startswith(triplePrefix);
}
LTOModule *LTOModule::createFromFile(const char *path, TargetOptions options,
OpenPOWER on IntegriCloud