[llvm-commits] [llvm] r109714 - /llvm/trunk/tools/bugpoint/ToolRunner.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Jul 28 17:52:17 PDT 2010
Author: stoklund
Date: Wed Jul 28 19:52:16 2010
New Revision: 109714
URL: http://llvm.org/viewvc/llvm-project?rev=109714&view=rev
Log:
Use the right gcc tool args for IsARMArchitecture.
Modified:
llvm/trunk/tools/bugpoint/ToolRunner.cpp
Modified: llvm/trunk/tools/bugpoint/ToolRunner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ToolRunner.cpp?rev=109714&r1=109713&r2=109714&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/ToolRunner.cpp (original)
+++ llvm/trunk/tools/bugpoint/ToolRunner.cpp Wed Jul 28 19:52:16 2010
@@ -627,8 +627,8 @@
// GCC abstraction
//
-static bool IsARMArchitecture(std::vector<std::string> Args) {
- for (std::vector<std::string>::const_iterator
+static bool IsARMArchitecture(std::vector<const char*> Args) {
+ for (std::vector<const char*>::const_iterator
I = Args.begin(), E = Args.end(); I != E; ++I) {
if (StringRef(*I).equals_lower("-arch")) {
++I;
@@ -673,7 +673,7 @@
// explicitly told what architecture it is working on, so we get
// it from gcc flags
if ((TargetTriple.getOS() == Triple::Darwin) &&
- !IsARMArchitecture(ArgsForGCC))
+ !IsARMArchitecture(GCCArgs))
GCCArgs.push_back("-force_cpusubtype_ALL");
}
}
More information about the llvm-commits
mailing list