Skip to content

Commit 7f45963

Browse files
authored
[Driver][NFC] Remove unused OffloadingActionBuilder's method (#2921)
Looks like this is a leftover from the partial linking method. Signed-off-by: Sergey Dmitriev <serguei.n.dmitriev@intel.com>
1 parent 2bc9193 commit 7f45963

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4688,43 +4688,6 @@ class OffloadingActionBuilder final {
46884688
return false;
46894689
}
46904690

4691-
/// Generate an action that adds a host dependence to an unbundling action.
4692-
/// The results will be kept in this action builder. Return true if an error
4693-
/// was found.
4694-
bool addHostDependenceToUnbundlingAction(Action *&HostAction,
4695-
ActionList &InputActionList,
4696-
const Arg *InputArg) {
4697-
if (!IsValid || InputActionList.empty())
4698-
return true;
4699-
4700-
auto *DeviceUnbundlingAction = C.MakeAction<OffloadUnbundlingJobAction>(
4701-
InputActionList, types::TY_Object);
4702-
DeviceUnbundlingAction->registerDependentActionInfo(
4703-
C.getSingleOffloadToolChain<Action::OFK_Host>(),
4704-
/*BoundArch=*/StringRef(), Action::OFK_Host);
4705-
HostAction = DeviceUnbundlingAction;
4706-
4707-
// Register the offload kinds that are used.
4708-
auto &OffloadKind = InputArgToOffloadKindMap[InputArg];
4709-
for (auto *SB : SpecializedBuilders) {
4710-
if (!SB->isValid())
4711-
continue;
4712-
4713-
auto RetCode = SB->addDeviceDepences(HostAction);
4714-
4715-
// Host dependences for device actions are not compatible with that same
4716-
// action being ignored.
4717-
assert(RetCode != DeviceActionBuilder::ABRT_Ignore_Host &&
4718-
"Host dependence not expected to be ignored.!");
4719-
4720-
// Unless the builder was inactive for this action, we have to record the
4721-
// offload kind because the host will have to use it.
4722-
if (RetCode != DeviceActionBuilder::ABRT_Inactive)
4723-
OffloadKind |= SB->getAssociatedOffloadKind();
4724-
}
4725-
return false;
4726-
}
4727-
47284691
/// Add the offloading top level actions that are specific for unique
47294692
/// linking situations where objects are used at only the device link
47304693
/// with no intermedate steps.

0 commit comments

Comments
 (0)