diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-26 06:23:07 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-26 06:23:07 +0000 |
commit | e675b842de5208f0ec182aede6cc7c62923739db (patch) | |
tree | cf573fbefd30b7813d9056d840c34c2ac542ac71 /lib/sanitizer_common/sanitizer_stackdepot.h | |
parent | 160815f9e699693889646c6abeadb78c338277fc (diff) |
Change StackDepot interface to use StackTrace more extensively
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@220637 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_stackdepot.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_stackdepot.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/sanitizer_common/sanitizer_stackdepot.h b/lib/sanitizer_common/sanitizer_stackdepot.h index c76c075ac..5e3a8b783 100644 --- a/lib/sanitizer_common/sanitizer_stackdepot.h +++ b/lib/sanitizer_common/sanitizer_stackdepot.h @@ -29,16 +29,13 @@ struct StackDepotHandle { u32 id(); int use_count(); void inc_use_count_unsafe(); - uptr size(); - uptr *stack(); }; const int kStackDepotMaxUseCount = 1U << 20; StackDepotStats *StackDepotGetStats(); -// FIXME: Pass StackTrace as an input argument here. -u32 StackDepotPut(const uptr *stack, uptr size); -StackDepotHandle StackDepotPut_WithHandle(const uptr *stack, uptr size); +u32 StackDepotPut(StackTrace stack); +StackDepotHandle StackDepotPut_WithHandle(StackTrace stack); // Retrieves a stored stack trace by the id. StackTrace StackDepotGet(u32 id); @@ -52,7 +49,7 @@ void StackDepotUnlockAll(); class StackDepotReverseMap { public: StackDepotReverseMap(); - const uptr *Get(u32 id, uptr *size); + StackTrace Get(u32 id); private: struct IdDescPair { |