Mercurial > hg > CbC > CbC_llvm
comparison libunwind/src/FrameHeaderCache.hpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 0572611fdcc8 |
children |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
30 // for other uses is possible, but not currently done. | 30 // for other uses is possible, but not currently done. |
31 | 31 |
32 class _LIBUNWIND_HIDDEN FrameHeaderCache { | 32 class _LIBUNWIND_HIDDEN FrameHeaderCache { |
33 struct CacheEntry { | 33 struct CacheEntry { |
34 uintptr_t LowPC() { return Info.dso_base; }; | 34 uintptr_t LowPC() { return Info.dso_base; }; |
35 uintptr_t HighPC() { return Info.dso_base + Info.dwarf_section_length; }; | 35 uintptr_t HighPC() { return Info.dso_base + Info.text_segment_length; }; |
36 UnwindInfoSections Info; | 36 UnwindInfoSections Info; |
37 CacheEntry *Next; | 37 CacheEntry *Next; |
38 }; | 38 }; |
39 | 39 |
40 static const size_t kCacheEntryCount = 8; | 40 static const size_t kCacheEntryCount = 8; |