mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
L0: Pass debug zebin to SLD
Added passing debug zebin to SLD. Added support for .const.data.strings section in debug zebin creation. Refactored debug zebin creation code. Resolves: NEO-6246 Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a787931b1d
commit
8e57e48695
@@ -59,7 +59,8 @@ class ConstStringRef {
|
||||
: ptr(str.data()), len(str.length()) {
|
||||
}
|
||||
|
||||
constexpr ConstStringRef substr(int offset, int len) const noexcept {
|
||||
template <typename SizeT>
|
||||
constexpr ConstStringRef substr(SizeT offset, SizeT len) const noexcept {
|
||||
if (len >= 0) {
|
||||
return ConstStringRef(this->ptr + offset, len);
|
||||
} else {
|
||||
@@ -67,7 +68,8 @@ class ConstStringRef {
|
||||
}
|
||||
}
|
||||
|
||||
constexpr ConstStringRef substr(int offset) const noexcept {
|
||||
template <typename SizeT>
|
||||
constexpr ConstStringRef substr(SizeT offset) const noexcept {
|
||||
return ConstStringRef(this->ptr + offset, this->len - offset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user