llvm/compiler-rt/lib/gwp_asan/common.cpp

//===-- common.cpp ----------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "gwp_asan/common.h"
#include "gwp_asan/stack_trace_compressor.h"

#include <assert.h>

AllocationMetadata;
Error;

namespace gwp_asan {

const char *ErrorToString(const Error &E) {}

constexpr size_t AllocationMetadata::kStackFrameStorageBytes;
constexpr size_t AllocationMetadata::kMaxTraceLengthToCollect;

void AllocationMetadata::RecordAllocation(uintptr_t AllocAddr,
                                          size_t AllocSize) {}

void AllocationMetadata::RecordDeallocation() {}

void AllocationMetadata::CallSiteInfo::RecordBacktrace(
    options::Backtrace_t Backtrace) {}

size_t AllocatorState::maximumAllocationSize() const {}

uintptr_t AllocatorState::slotToAddr(size_t N) const {}

bool AllocatorState::isGuardPage(uintptr_t Ptr) const {}

static size_t addrToSlot(const AllocatorState *State, uintptr_t Ptr) {}

size_t AllocatorState::getNearestSlot(uintptr_t Ptr) const {}

uintptr_t AllocatorState::internallyDetectedErrorFaultAddress() const {}

} // namespace gwp_asan