From: Jakob Stoklund Olesen Date: Thu, 29 Jul 2010 00:52:16 +0000 (+0000) Subject: Use the right gcc tool args for IsARMArchitecture. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=887b703d226fe913bf4b5c23935ba5b784eb993c;p=oota-llvm.git Use the right gcc tool args for IsARMArchitecture. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109714 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index da99800c9a2..36dbe144c1c 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -627,8 +627,8 @@ CBE *AbstractInterpreter::createCBE(const char *Argv0, // GCC abstraction // -static bool IsARMArchitecture(std::vector Args) { - for (std::vector::const_iterator +static bool IsARMArchitecture(std::vector Args) { + for (std::vector::const_iterator I = Args.begin(), E = Args.end(); I != E; ++I) { if (StringRef(*I).equals_lower("-arch")) { ++I; @@ -673,7 +673,7 @@ int GCC::ExecuteProgram(const std::string &ProgramFile, // 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"); } }