diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2013-11-04 19:22:50 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2013-11-04 19:22:50 +0000 |
commit | 42f2a6b41ea62d4ccd10a6c469b27549881a7406 (patch) | |
tree | cb1e75d9c902adb7313114c0ee9a82ca72b0f330 /tools | |
parent | 2e58f1d4cf95e44674cbc4975e713f9293255d5f (diff) | |
download | external_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.cpp | 2 |
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; } } |