diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-11-12 20:36:59 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-11-12 20:36:59 +0000 |
commit | ea862b03de56f3746e10b93b4aaea3f5c781fd21 (patch) | |
tree | 75fb85be777ac40e0c83af0712651f0da12e3fac /tools | |
parent | 5b11c7069ffa39e6276b66d9dbf91ecd3844f286 (diff) | |
download | external_llvm-ea862b03de56f3746e10b93b4aaea3f5c781fd21.zip external_llvm-ea862b03de56f3746e10b93b4aaea3f5c781fd21.tar.gz external_llvm-ea862b03de56f3746e10b93b4aaea3f5c781fd21.tar.bz2 |
Add compare_lower and equals_lower methods to StringRef. Switch all users of
StringsEqualNoCase (from StringExtras.h) to it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/ToolRunner.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index 4551d41..3e63d80 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -18,7 +18,6 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/FileUtilities.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/ADT/StringExtras.h" #include "llvm/Config/config.h" // for HAVE_LINK_R #include <fstream> #include <sstream> @@ -610,9 +609,10 @@ IsARMArchitecture(std::vector<std::string> Args) { for (std::vector<std::string>::const_iterator I = Args.begin(), E = Args.end(); I != E; ++I) { - if (!StringsEqualNoCase(*I, "-arch")) { + StringRef S(*I); + if (!S.equals_lower("-arch")) { ++I; - if ((I != E) && !StringsEqualNoCase(I->c_str(), "arm", strlen("arm"))) { + if (I != E && !S.substr(0, strlen("arm")).equals_lower("arm")) { return true; } } |