forked from OSchip/llvm-project
[ASan] Temporary remove leak checking from ASan, while we don't have makefile-based build for LSan
llvm-svn: 182465
This commit is contained in:
parent
9ac7b48ddb
commit
155dd46e04
|
@ -85,7 +85,7 @@ else()
|
|||
$<TARGET_OBJECTS:RTInterception.${arch}>
|
||||
$<TARGET_OBJECTS:RTSanitizerCommon.${arch}>
|
||||
$<TARGET_OBJECTS:RTSanitizerCommonLibc.${arch}>
|
||||
$<TARGET_OBJECTS:RTLSanCommon.${arch}>
|
||||
#$<TARGET_OBJECTS:RTLSanCommon.${arch}>
|
||||
CFLAGS ${ASAN_CFLAGS}
|
||||
DEFS ${ASAN_COMMON_DEFINITIONS}
|
||||
SYMS asan.syms)
|
||||
|
|
|
@ -768,7 +768,7 @@ u32 LsanMetadata::stack_trace_id() const {
|
|||
template <typename Callable> void ForEachChunk(Callable const &callback) {
|
||||
__asan::allocator.ForEachChunk(callback);
|
||||
}
|
||||
#if CAN_SANITIZE_LEAKS
|
||||
#if 0
|
||||
template void ForEachChunk<ProcessPlatformSpecificAllocationsCb>(
|
||||
ProcessPlatformSpecificAllocationsCb const &callback);
|
||||
template void ForEachChunk<PrintLeakedCb>(PrintLeakedCb const &callback);
|
||||
|
@ -777,7 +777,7 @@ template void ForEachChunk<MarkIndirectlyLeakedCb>(
|
|||
MarkIndirectlyLeakedCb const &callback);
|
||||
template void ForEachChunk<ReportLeakedCb>(ReportLeakedCb const &callback);
|
||||
template void ForEachChunk<ClearTagCb>(ClearTagCb const &callback);
|
||||
#endif // SANITIZE_LEAKS
|
||||
#endif // CAN_SANITIZE_LEAKS
|
||||
} // namespace __lsan
|
||||
|
||||
// ---------------------- Interface ---------------- {{{1
|
||||
|
|
|
@ -560,7 +560,7 @@ void __asan_init() {
|
|||
|
||||
InitializeAllocator();
|
||||
|
||||
#if CAN_SANITIZE_LEAKS
|
||||
#if 0
|
||||
__lsan::InitCommonLsan();
|
||||
if (flags()->detect_leaks) {
|
||||
Atexit(__lsan::DoLeakCheck);
|
||||
|
|
Loading…
Reference in New Issue