@@ -2129,7 +2129,7 @@ static bool SDLSearch(const Driver &D, const llvm::opt::ArgList &DriverArgs,
2129
2129
// / the library paths. If so, add a new command to clang-offload-bundler to
2130
2130
// / unbundle this archive and create a temporary device specific archive. Name
2131
2131
// / of this SDL is passed to the llvm-link tool.
2132
- static bool GetSDLFromOffloadArchive (
2132
+ static void GetSDLFromOffloadArchive (
2133
2133
Compilation &C, const Driver &D, const Tool &T, const JobAction &JA,
2134
2134
const InputInfoList &Inputs, const llvm::opt::ArgList &DriverArgs,
2135
2135
llvm::opt::ArgStringList &CC1Args,
@@ -2138,7 +2138,7 @@ static bool GetSDLFromOffloadArchive(
2138
2138
2139
2139
// We don't support bitcode archive bundles for nvptx
2140
2140
if (isBitCodeSDL && Arch.contains (" nvptx" ))
2141
- return false ;
2141
+ return ;
2142
2142
2143
2143
bool FoundAOB = false ;
2144
2144
std::string ArchiveOfBundles;
@@ -2174,12 +2174,12 @@ static bool GetSDLFromOffloadArchive(
2174
2174
}
2175
2175
2176
2176
if (!FoundAOB)
2177
- return false ;
2177
+ return ;
2178
2178
2179
2179
llvm::file_magic Magic;
2180
2180
auto EC = llvm::identify_magic (ArchiveOfBundles, Magic);
2181
2181
if (EC || Magic != llvm::file_magic::archive)
2182
- return false ;
2182
+ return ;
2183
2183
2184
2184
StringRef Prefix = isBitCodeSDL ? " libbc-" : " lib" ;
2185
2185
std::string OutputLib =
@@ -2234,7 +2234,7 @@ static bool GetSDLFromOffloadArchive(
2234
2234
2235
2235
CC1Args.push_back (DriverArgs.MakeArgString (OutputLib));
2236
2236
2237
- return true ;
2237
+ return ;
2238
2238
}
2239
2239
2240
2240
// Wrapper function used by driver for adding SDLs during link phase.
0 commit comments