diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-04 14:12:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-04 14:12:46 +0000 |
commit | f98536a04638b2ba4662e11b12b29ea8d7e1aa25 (patch) | |
tree | 5df3413eba9bb542613c4fc1cd1e68c920049216 /llvm/lib/LTO | |
parent | d346cc8efc614c5598476a9388b3f120b98d92c0 (diff) | |
download | bcm5719-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.cpp | 4 |
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, |