summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2018-02-28 17:53:46 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2018-02-28 17:53:46 +0000
commite768132f94ed86dcf076d52538abea1861cb1e02 (patch)
treeae9b5ffb9258ba75658fcb2757ba2847d24bde9b /clang/lib/Frontend/CompilerInvocation.cpp
parent9f9e4681ace64e6200f82d9d7f011701fd4e9cc8 (diff)
downloadbcm5719-llvm-e768132f94ed86dcf076d52538abea1861cb1e02.tar.gz
bcm5719-llvm-e768132f94ed86dcf076d52538abea1861cb1e02.zip
[CUDA] Include single GPU binary, NFCI.
Binaries for multiple architectures are combined by fatbinary, so the current code was effectively not needed. Differential Revision: https://reviews.llvm.org/D43461 llvm-svn: 326342
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 4be390b49bc..a217d356dc4 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1046,8 +1046,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
Args.getAllArgValues(OPT_fsanitize_trap_EQ), Diags,
Opts.SanitizeTrap);
- Opts.CudaGpuBinaryFileNames =
- Args.getAllArgValues(OPT_fcuda_include_gpubinary);
+ Opts.CudaGpuBinaryFileName =
+ Args.getLastArgValue(OPT_fcuda_include_gpubinary);
Opts.Backchain = Args.hasArg(OPT_mbackchain);
OpenPOWER on IntegriCloud