Skip to content

Commit 833734d

Browse files
mdtoguchiFznamznon
authored andcommitted
Update diagnostic output to use getSpelling() instead of getName
1 parent 4bfbb34 commit 833734d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
12101210
} else {
12111211
// No colon found, do not use the input
12121212
C.getDriver().Diag(diag::err_drv_unsupported_option_argument)
1213-
<< SYCLAddTargets->getOption().getName() << Val;
1213+
<< SYCLAddTargets->getSpelling() << Val;
12141214
}
12151215
}
12161216
} else
@@ -2294,7 +2294,7 @@ void Driver::PrintSYCLToolHelp(const Compilation &C) const {
22942294
"opencl-aot", "--help", ""));
22952295
if (HelpArgs.empty()) {
22962296
C.getDriver().Diag(diag::err_drv_unsupported_option_argument)
2297-
<< A->getOption().getName() << AV;
2297+
<< A->getSpelling() << AV;
22982298
return;
22992299
}
23002300
}
@@ -5167,7 +5167,7 @@ class OffloadingActionBuilder final {
51675167
// Driver::CreateOffloadingDeviceToolChains() to minimize code
51685168
// duplication.
51695169
C.getDriver().Diag(diag::err_drv_unsupported_option_argument)
5170-
<< A->getOption().getName() << Val;
5170+
<< A->getSpelling() << Val;
51715171
}
51725172
devicelib_link_info[Val] = true && !NoDeviceLibs;
51735173
}

0 commit comments

Comments
 (0)