summaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-18 07:06:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-18 07:06:02 +0000
commit871adcf4e41285e3f4c3b62eaa1b2e05b60b92da (patch)
tree779a51cca6bd05510c46bdaeb56219ac2725ad16 /lib/Driver/Driver.cpp
parentaa469f62f2b3ba6f560ccadfc379f8f4c45e3d51 (diff)
downloadclang-871adcf4e41285e3f4c3b62eaa1b2e05b60b92da.tar.gz
clang-871adcf4e41285e3f4c3b62eaa1b2e05b60b92da.tar.bz2
clang-871adcf4e41285e3f4c3b62eaa1b2e05b60b92da.tar.xz
Driver: ConstructJob also needs to know the destination (where to put
its commands). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 1e4cd7f478..f06166e930 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -751,6 +751,7 @@ void Driver::BuildJobsForAction(Compilation &C,
if (!PJ) {
PJ = new PipedJob();
cast<JobList>(Dest)->addJob(PJ);
+ Dest = PJ;
}
Result = InputInfo(PJ, A->getType(), BaseInput);
} else {
@@ -768,7 +769,7 @@ void Driver::BuildJobsForAction(Compilation &C,
llvm::errs() << "], output: " << Result.getAsString() << "\n";
} else {
const ArgList &TCArgs = C.getArgsForToolChain(TC);
- T.ConstructJob(C, *JA, Result, InputInfos, TCArgs, LinkingOutput);
+ T.ConstructJob(C, *JA, *Dest, Result, InputInfos, TCArgs, LinkingOutput);
}
}