diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2016-10-27 01:08:58 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2016-10-27 01:08:58 +0000 |
commit | 10e905c2e9e470f5f56cc717885c923db348dba4 (patch) | |
tree | 6c0efe907c3d48a088bdbabcfb1dbb463f789538 /clang/lib/Driver/Driver.cpp | |
parent | 5b1a89a33b2313bea62b18e9272a42f73b791c17 (diff) | |
download | bcm5719-llvm-10e905c2e9e470f5f56cc717885c923db348dba4.tar.gz bcm5719-llvm-10e905c2e9e470f5f56cc717885c923db348dba4.zip |
Remove check for -o option in offloading actions builder.
This check is also present when jobs are built, so the offloading builder check is not needed anymore.
llvm-svn: 285264
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 4335bbfd42d..8a68684eb00 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -1418,9 +1418,6 @@ class OffloadingActionBuilder final { /// The compilation that is using this builder. Compilation &C; - /// The derived arguments associated with this builder. - DerivedArgList &Args; - /// Map between an input argument and the offload kinds used to process it. std::map<const Arg *, unsigned> InputArgToOffloadKindMap; @@ -1760,7 +1757,7 @@ class OffloadingActionBuilder final { public: OffloadingActionBuilder(Compilation &C, DerivedArgList &Args, const Driver::InputList &Inputs) - : C(C), Args(Args) { + : C(C) { // Create a specialized builder for each device toolchain. IsValid = true; @@ -1876,31 +1873,17 @@ public: /// Add the offloading top level actions to the provided action list. bool appendTopLevelActions(ActionList &AL, Action *HostAction, const Arg *InputArg) { - auto NumActions = AL.size(); - for (auto *SB : SpecializedBuilders) { if (!SB->isValid()) continue; SB->appendTopLevelActions(AL); } - assert(NumActions <= AL.size() && "Expecting more actions, not less!"); - // Propagate to the current host action (if any) the offload information // associated with the current input. if (HostAction) HostAction->propagateHostOffloadInfo(InputArgToOffloadKindMap[InputArg], /*BoundArch=*/nullptr); - - // If any action is added by the builders, -o is ambiguous if we have more - // than one top-level action. - if (NumActions < AL.size() && Args.hasArg(options::OPT_o) && - AL.size() > 1) { - C.getDriver().Diag( - clang::diag::err_drv_output_argument_with_multiple_files); - return true; - } - return false; } |