summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2013-11-04 19:22:50 +0000
committerJakub Staszak <kubastaszak@gmail.com>2013-11-04 19:22:50 +0000
commit42f2a6b41ea62d4ccd10a6c469b27549881a7406 (patch)
treecb1e75d9c902adb7313114c0ee9a82ca72b0f330 /tools
parent2e58f1d4cf95e44674cbc4975e713f9293255d5f (diff)
downloadexternal_llvm-42f2a6b41ea62d4ccd10a6c469b27549881a7406.zip
external_llvm-42f2a6b41ea62d4ccd10a6c469b27549881a7406.tar.gz
external_llvm-42f2a6b41ea62d4ccd10a6c469b27549881a7406.tar.bz2
Use startswith_lower() where possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/ToolRunner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp
index 107d0db..254d997 100644
--- a/tools/bugpoint/ToolRunner.cpp
+++ b/tools/bugpoint/ToolRunner.cpp
@@ -662,7 +662,7 @@ static bool IsARMArchitecture(std::vector<const char*> Args) {
I = Args.begin(), E = Args.end(); I != E; ++I) {
if (StringRef(*I).equals_lower("-arch")) {
++I;
- if (I != E && StringRef(*I).substr(0, strlen("arm")).equals_lower("arm"))
+ if (I != E && StringRef(*I).startswith_lower("arm"))
return true;
}
}