Skip to content

[asan][NFCI] Rename asan_(malloc_)?linux.cpp to ...unix.cpp #132263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compiler-rt/lib/asan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ set(ASAN_SOURCES
asan_globals_win.cpp
asan_interceptors.cpp
asan_interceptors_memintrinsics.cpp
asan_linux.cpp
asan_mac.cpp
asan_malloc_linux.cpp
asan_malloc_mac.cpp
asan_malloc_unix.cpp
asan_malloc_win.cpp
asan_memory_profile.cpp
asan_poisoning.cpp
Expand All @@ -29,6 +28,7 @@ set(ASAN_SOURCES
asan_stats.cpp
asan_suppressions.cpp
asan_thread.cpp
asan_unix.cpp
asan_win.cpp
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- asan_malloc_linux.cpp ---------------------------------------------===//
//===-- asan_malloc_unix.cpp ----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -8,7 +8,7 @@
//
// This file is a part of AddressSanitizer, an address sanity checker.
//
// Linux-specific malloc interception.
// Unix-like-specific malloc interception.
// We simply define functions like malloc, free, realloc, etc.
// They will replace the corresponding libc functions automagically.
//===----------------------------------------------------------------------===//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- asan_linux.cpp ----------------------------------------------------===//
//===-- asan_unix.cpp -----------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
4 changes: 2 additions & 2 deletions llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ if (current_toolchain == host_toolchain) {
"asan_interface.inc",
"asan_interface_internal.h",
"asan_internal.h",
"asan_linux.cpp",
"asan_mac.cpp",
"asan_malloc_linux.cpp",
"asan_malloc_mac.cpp",
"asan_malloc_unix.cpp",
"asan_malloc_win.cpp",
"asan_mapping.h",
"asan_memory_profile.cpp",
Expand All @@ -58,6 +57,7 @@ if (current_toolchain == host_toolchain) {
"asan_suppressions.h",
"asan_thread.cpp",
"asan_thread.h",
"asan_unix.cpp",
"asan_win.cpp",
]
if (current_os != "mac" && current_os != "win") {
Expand Down
Loading