diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 07:06:02 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 07:06:02 +0000 |
commit | 04c4c2c3db48fbc43542c5609f27f163ae798469 (patch) | |
tree | c1eaca22ae96ec661b538a06d61438cd33a9a9fb /clang/lib/Driver/Driver.cpp | |
parent | 3beceaf7f134875d3cd8357fec4314ea32987193 (diff) | |
download | bcm5719-llvm-04c4c2c3db48fbc43542c5609f27f163ae798469.tar.gz bcm5719-llvm-04c4c2c3db48fbc43542c5609f27f163ae798469.zip |
Driver: ConstructJob also needs to know the destination (where to put
its commands).
llvm-svn: 67179
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 1e4cd7f4782..f06166e930f 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/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); } } |