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:
Krystian Chmielewski
2021-10-28 15:54:45 +00:00
committed by Compute-Runtime-Automation
parent a787931b1d
commit 8e57e48695
9 changed files with 294 additions and 82 deletions

View File

@@ -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);
}