@@ -308,42 +308,6 @@ static bool getStatic(const ArgList &Args) {
308308 !Args.hasArg (options::OPT_static_pie);
309309}
310310
311- // Create an archive with llvm-ar. This is used to create an archive that
312- // contains host objects and the wrapped FPGA device binary
313- void tools::gnutools::Linker::constructLLVMARCommand (
314- Compilation &C, const JobAction &JA, const InputInfo &Output,
315- const InputInfoList &Input, const ArgList &Args) const {
316- ArgStringList CmdArgs;
317- // Use 'cqL' to create the archive. This allows for any fat archives that
318- // are passed on the command line to be added via contents instead of the
319- // full archive. Any usage of the generated archive will then have full
320- // access to resolve any dependencies.
321- CmdArgs.push_back (" cqL" );
322- const char *OutputFilename = Output.getFilename ();
323- if (llvm::sys::fs::exists (OutputFilename)) {
324- C.getDriver ().Diag (clang::diag::warn_drv_existing_archive_append)
325- << OutputFilename;
326- }
327- CmdArgs.push_back (OutputFilename);
328- for (const auto &II : Input) {
329- if (II.getType () == types::TY_Tempfilelist) {
330- // Take the list file and pass it in with '@'.
331- std::string FileName (II.getFilename ());
332- const char *ArgFile = Args.MakeArgString (" @" + FileName);
333- CmdArgs.push_back (ArgFile);
334- continue ;
335- }
336- if (II.isFilename ())
337- CmdArgs.push_back (II.getFilename ());
338- }
339-
340- SmallString<128 > LLVMARPath (C.getDriver ().Dir );
341- llvm::sys::path::append (LLVMARPath, " llvm-ar" );
342- const char *Exec = C.getArgs ().MakeArgString (LLVMARPath);
343- C.addCommand (std::make_unique<Command>(
344- JA, *this , ResponseFileSupport::None (), Exec, CmdArgs, std::nullopt ));
345- }
346-
347311void tools::gnutools::StaticLibTool::ConstructJob (
348312 Compilation &C, const JobAction &JA, const InputInfo &Output,
349313 const InputInfoList &Inputs, const ArgList &Args,
@@ -413,12 +377,6 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
413377 ToolChain.getTriple ().hasEnvironment () ||
414378 (ToolChain.getTriple ().getVendor () != llvm::Triple::MipsTechnologies);
415379
416- // Use of -fsycl-link creates an archive.
417- if (Args.hasArg (options::OPT_fsycl_link_EQ) &&
418- JA.getType () == types::TY_Archive) {
419- constructLLVMARCommand (C, JA, Output, Inputs, Args);
420- return ;
421- }
422380 ArgStringList CmdArgs;
423381
424382 // Silence warning for "clang -g foo.o -o foo"
@@ -739,10 +697,6 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
739697 else
740698 CmdArgs.push_back (" -lsycl" );
741699 CmdArgs.push_back (" -lsycl-devicelib-host" );
742- // Use of -fintelfpga implies -lOpenCL.
743- // FIXME: Adjust to use plugin interface when available.
744- if (Args.hasArg (options::OPT_fintelfpga))
745- CmdArgs.push_back (" -lOpenCL" );
746700 }
747701
748702 // LLVM support for atomics on 32-bit SPARC V8+ is incomplete, so
0 commit comments