summaryrefslogtreecommitdiff
path: root/lib/asan/asan_mac.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-08-28 11:54:30 +0000
committerKostya Serebryany <kcc@google.com>2012-08-28 11:54:30 +0000
commitc3390df6670cb166119b961eb27a033fb9073496 (patch)
tree4688fc0ce82a1ede44f324d3b9a49d50235f90ca /lib/asan/asan_mac.cc
parent283c296b64bc55deec9698260b3427a9b050a925 (diff)
downloadcompiler-rt-c3390df6670cb166119b961eb27a033fb9073496.tar.gz
compiler-rt-c3390df6670cb166119b961eb27a033fb9073496.tar.bz2
compiler-rt-c3390df6670cb166119b961eb27a033fb9073496.tar.xz
[asan] some renaming before we move StackTrace into sanitizer_common
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_mac.cc')
-rw-r--r--lib/asan/asan_mac.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/asan/asan_mac.cc b/lib/asan/asan_mac.cc
index 4a5b6ecf..d7fc6c47 100644
--- a/lib/asan/asan_mac.cc
+++ b/lib/asan/asan_mac.cc
@@ -152,7 +152,7 @@ void AsanLock::Unlock() {
OSSpinLockUnlock((OSSpinLock*)&opaque_storage_);
}
-void AsanStackTrace::GetStackTrace(uptr max_s, uptr pc, uptr bp) {
+void StackTrace::GetStackTrace(uptr max_s, uptr pc, uptr bp) {
size = 0;
trace[0] = pc;
if ((max_s) > 1) {
@@ -280,7 +280,7 @@ int pthread_workqueue_additem_np(pthread_workqueue_t workq,
} // extern "C"
static ALWAYS_INLINE
-void asan_register_worker_thread(int parent_tid, AsanStackTrace *stack) {
+void asan_register_worker_thread(int parent_tid, StackTrace *stack) {
AsanThread *t = asanThreadRegistry().GetCurrent();
if (!t) {
t = AsanThread::Create(parent_tid, 0, 0, stack);
@@ -315,7 +315,7 @@ using namespace __asan; // NOLINT
// The caller retains control of the allocated context.
extern "C"
asan_block_context_t *alloc_asan_context(void *ctxt, dispatch_function_t func,
- AsanStackTrace *stack) {
+ StackTrace *stack) {
asan_block_context_t *asan_ctxt =
(asan_block_context_t*) asan_malloc(sizeof(asan_block_context_t), stack);
asan_ctxt->block = ctxt;