Skip to content

Commit f467518

Browse files
[SYCL][NFC] Remove overload of saveCodeLoc under ABI-break flag (#19276)
This function is no longer used in preview breaking mode.
1 parent 094d126 commit f467518

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sycl/include/sycl/handler.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,9 @@ class __SYCL_EXPORT handler {
562562

563563
/// Saves the location of user's code passed in \p CodeLoc for future usage in
564564
/// finalize() method.
565-
/// TODO: remove the first version of this func (the one without the IsTopCodeLoc arg)
566-
/// at the next ABI breaking window since removing it breaks ABI on windows.
565+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
567566
void saveCodeLoc(detail::code_location CodeLoc);
567+
#endif
568568
void saveCodeLoc(detail::code_location CodeLoc, bool IsTopCodeLoc);
569569
void copyCodeLoc(const handler &other);
570570

sycl/source/handler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,10 +2482,12 @@ void handler::saveCodeLoc(detail::code_location CodeLoc, bool IsTopCodeLoc) {
24822482
MCodeLoc = CodeLoc;
24832483
impl->MIsTopCodeLoc = IsTopCodeLoc;
24842484
}
2485+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
24852486
void handler::saveCodeLoc(detail::code_location CodeLoc) {
24862487
MCodeLoc = CodeLoc;
24872488
impl->MIsTopCodeLoc = true;
24882489
}
2490+
#endif
24892491
void handler::copyCodeLoc(const handler &other) {
24902492
MCodeLoc = other.MCodeLoc;
24912493
impl->MIsTopCodeLoc = other.impl->MIsTopCodeLoc;

0 commit comments

Comments
 (0)