Fix LLDB build on old Linux kernels

Usage of aux_size is guarded against elsewhere in this file, but is missing here.

Reviewed By: wallace

Differential Revision: https://reviews.llvm.org/D110269

Original Author: calebzulawski
This commit is contained in:
Walter Erquinigo 2021-09-29 09:40:53 -07:00
parent 576301d922
commit d35702efe7
1 changed files with 4 additions and 0 deletions

View File

@ -145,7 +145,11 @@ static Error CheckPsbPeriod(size_t psb_period) {
}
size_t IntelPTThreadTrace::GetTraceBufferSize() const {
#ifndef PERF_ATTR_SIZE_VER5
llvm_unreachable("Intel PT Linux perf event not supported");
#else
return m_mmap_meta->aux_size;
#endif
}
static Expected<uint64_t>