|
47 | 47 | #include "llvm/Support/Errc.h"
|
48 | 48 | #include "llvm/Support/FileOutputBuffer.h"
|
49 | 49 | #include "llvm/Support/FileSystem.h"
|
50 |
| -#include "llvm/Support/FileUtilities.h" |
51 | 50 | #include "llvm/Support/InitLLVM.h"
|
52 | 51 | #include "llvm/Support/LineIterator.h"
|
53 | 52 | #include "llvm/Support/MemoryBuffer.h"
|
54 | 53 | #include "llvm/Support/Parallel.h"
|
55 | 54 | #include "llvm/Support/Path.h"
|
56 | 55 | #include "llvm/Support/Program.h"
|
57 | 56 | #include "llvm/Support/Signals.h"
|
58 |
| -#include "llvm/Support/SimpleTable.h" |
59 | 57 | #include "llvm/Support/SourceMgr.h"
|
60 | 58 | #include "llvm/Support/StringSaver.h"
|
61 | 59 | #include "llvm/Support/TargetSelect.h"
|
@@ -156,7 +154,7 @@ static std::optional<llvm::module_split::IRSplitMode> SYCLModuleSplitMode;
|
156 | 154 |
|
157 | 155 | static bool UseSYCLPostLinkTool;
|
158 | 156 |
|
159 |
| -SmallString<128> SPIRVDumpDir; |
| 157 | +static SmallString<128> SPIRVDumpDir; |
160 | 158 |
|
161 | 159 | using OffloadingImage = OffloadBinary::OffloadingImage;
|
162 | 160 |
|
@@ -1480,7 +1478,7 @@ Error extractBundledObjects(StringRef Filename, const ArgList &Args,
|
1480 | 1478 | if (Magic == file_magic::spirv_object)
|
1481 | 1479 | return createStringError(
|
1482 | 1480 | "SPIR-V fat objects must be generated with --offload-new-driver");
|
1483 |
| - auto Arg = Args.MakeArgString( |
| 1481 | + const auto *Arg = Args.MakeArgString( |
1484 | 1482 | "sycl-" +
|
1485 | 1483 | (Triple.isSPIROrSPIRV() ? Triple.str() + "-" : Triple.str()) + "=" +
|
1486 | 1484 | ObjectFilePath);
|
@@ -2237,7 +2235,7 @@ DerivedArgList getLinkerArgs(ArrayRef<OffloadFile> Input,
|
2237 | 2235 | DAL.AddJoinedArg(nullptr, Tbl.getOption(OPT_triple_EQ),
|
2238 | 2236 | Args.MakeArgString(Input.front().getBinary()->getTriple()));
|
2239 | 2237 |
|
2240 |
| - auto Bin = Input.front().getBinary(); |
| 2238 | + const auto *Bin = Input.front().getBinary(); |
2241 | 2239 | DAL.AddJoinedArg(
|
2242 | 2240 | nullptr, Tbl.getOption(OPT_sycl_backend_compile_options_from_image_EQ),
|
2243 | 2241 | Args.MakeArgString(Bin->getString(COMPILE_OPTS)));
|
|
0 commit comments