summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-02 02:38:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-02 02:38:06 +0000
commita7dd15888bb32975705bf2a1ee015d5443b68047 (patch)
tree45e026a7ce600d18e2d4b0e847a81a48b3dae0b6 /clang/lib
parent926f81fce54c6ccc79ec813fccfec83cfedf0d73 (diff)
downloadbcm5719-llvm-a7dd15888bb32975705bf2a1ee015d5443b68047.tar.gz
bcm5719-llvm-a7dd15888bb32975705bf2a1ee015d5443b68047.zip
Driver: Never try to use piped inputs.
llvm-svn: 110008
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Driver/Driver.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 9086ff9a9b7..077c05ba166 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1061,7 +1061,6 @@ void Driver::BuildJobsForAction(Compilation &C,
const Tool &T = SelectToolForJob(C, TC, JA, Inputs);
// Only use pipes when there is exactly one input.
- bool TryToUsePipeInput = Inputs->size() == 1 && T.acceptsPipedInput();
InputInfoList InputInfos;
for (ActionList::const_iterator it = Inputs->begin(), ie = Inputs->end();
it != ie; ++it) {
@@ -1074,7 +1073,7 @@ void Driver::BuildJobsForAction(Compilation &C,
SubJobAtTopLevel = true;
InputInfo II;
- BuildJobsForAction(C, *it, TC, BoundArch, TryToUsePipeInput,
+ BuildJobsForAction(C, *it, TC, BoundArch, false,
SubJobAtTopLevel, LinkingOutput, II);
InputInfos.push_back(II);
}
@@ -1094,11 +1093,7 @@ void Driver::BuildJobsForAction(Compilation &C,
// Figure out where to put the job (pipes).
Job *Dest = &C.getJobs();
- if (InputInfos[0].isPipe()) {
- assert(TryToUsePipeInput && "Unrequested pipe!");
- assert(InputInfos.size() == 1 && "Unexpected pipe with multiple inputs.");
- Dest = &InputInfos[0].getPipe();
- }
+ assert(!InputInfos[0].isPipe() && "Unrequested pipe!");
// Always use the first input as the base input.
const char *BaseInput = InputInfos[0].getBaseInput();
OpenPOWER on IntegriCloud