File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
clang/lib/Driver/ToolChains Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1128,7 +1128,7 @@ void SYCLToolChain::AddImpliedTargetArgs(const llvm::Triple &Triple,
1128
1128
// optimizations. They are passed along to the respective areas as follows:
1129
1129
// FPGA: -g -cl-opt-disable
1130
1130
// Default device AOT: -g -cl-opt-disable
1131
- // Default device JIT: -g (-cl-opt-disable is handled by the runtime)
1131
+ // Default device JIT: -g (-O0 is handled by the runtime)
1132
1132
// GEN: -options "-g -O0"
1133
1133
// CPU: "--bo=-g -cl-opt-disable"
1134
1134
llvm::opt::ArgStringList BeArgs;
@@ -1137,7 +1137,7 @@ void SYCLToolChain::AddImpliedTargetArgs(const llvm::Triple &Triple,
1137
1137
if (!A->getOption ().matches (options::OPT_g0))
1138
1138
BeArgs.push_back (" -g" );
1139
1139
// Only pass -cl-opt-disable for non-JIT, as the runtime
1140
- // handles it in that case.
1140
+ // handles O0 for the JIT case.
1141
1141
if (Triple.getSubArch () != llvm::Triple::NoSubArch)
1142
1142
if (Arg *A = Args.getLastArg (options::OPT_O_Group))
1143
1143
if (A->getOption ().matches (options::OPT_O0))
You can’t perform that action at this time.
0 commit comments