diff options
author | Kostya Serebryany <kcc@google.com> | 2014-02-06 06:56:22 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-02-06 06:56:22 +0000 |
commit | f403d8dbce91a4196a67570cef3259a16999e3c2 (patch) | |
tree | 6eff94249b0744cfae15bf8a9fc36e527dc05311 /lib/asan/asan_fake_stack.h | |
parent | e2cdf0bda99368cfb311d89719ef39b7197f30a7 (diff) |
[asan] introduce two functions that will allow implementations of C++ garbage colection to work with asan's fake stack
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_fake_stack.h')
-rw-r--r-- | lib/asan/asan_fake_stack.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/asan/asan_fake_stack.h b/lib/asan/asan_fake_stack.h index 726fb094a..3b1d9eb3b 100644 --- a/lib/asan/asan_fake_stack.h +++ b/lib/asan/asan_fake_stack.h @@ -129,7 +129,11 @@ class FakeStack { void PoisonAll(u8 magic); // Return the beginning of the FakeFrame or 0 if the address is not ours. - uptr AddrIsInFakeStack(uptr addr); + uptr AddrIsInFakeStack(uptr addr, uptr *frame_beg, uptr *frame_end); + USED uptr AddrIsInFakeStack(uptr addr) { + uptr t1, t2; + return AddrIsInFakeStack(addr, &t1, &t2); + } // Number of bytes in a fake frame of this size class. static uptr BytesInSizeClass(uptr class_id) { |