[cfe-commits] r155719 - /cfe/trunk/lib/Driver/Driver.cpp
Chad Rosier
mcrosier at apple.com
Fri Apr 27 09:50:38 PDT 2012
Author: mcrosier
Date: Fri Apr 27 11:50:38 2012
New Revision: 155719
URL: http://llvm.org/viewvc/llvm-project?rev=155719&view=rev
Log:
Fix logic such that we only call getToolChain once. No functional change
intended.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=155719&r1=155718&r2=155719&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Fri Apr 27 11:50:38 2012
@@ -1347,11 +1347,13 @@
}
if (const BindArchAction *BAA = dyn_cast<BindArchAction>(A)) {
- const ToolChain *TC = &C.getDefaultToolChain();
+ const ToolChain *TC;
const char *ArchName = BAA->getArchName();
if (ArchName)
TC = &getToolChain(C.getArgs(), ArchName);
+ else
+ TC = &C.getDefaultToolChain();
BuildJobsForAction(C, *BAA->begin(), TC, BAA->getArchName(),
AtTopLevel, LinkingOutput, Result);
More information about the cfe-commits
mailing list