Skip to content

Commit 261547c

Browse files
committed
dead code
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent ee7ba68 commit 261547c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -167,20 +167,6 @@ getHIPOffloadTargetTriple(const Driver &D, const ArgList &Args) {
167167
return std::nullopt;
168168
}
169169

170-
static std::optional<llvm::Triple>
171-
getSPIRVOffloadTargetTriple(const Driver &D, const ArgList &Args) {
172-
if (!Args.hasArg(options::OPT_offload_EQ))
173-
return llvm::Triple(
174-
"spirv64-intel"); // Only vendor "intel" is currently supported.
175-
auto TT = getOffloadTargetTriple(D, Args);
176-
if (!TT)
177-
return std::nullopt;
178-
if ((*TT).isSPIRV() && (*TT).getVendor() == llvm::Triple::Intel)
179-
return TT;
180-
D.Diag(diag::err_drv_invalid_or_unsupported_offload_target) << TT->str();
181-
return std::nullopt;
182-
}
183-
184170
// static
185171
std::string Driver::GetResourcesPath(StringRef BinaryPath) {
186172
// Since the resource directory is embedded in the module hash, it's important

0 commit comments

Comments
 (0)