Separate allocator from memory
This commit is contained in:
@ -13,6 +13,7 @@ cc_library(
|
||||
],
|
||||
deps = [
|
||||
"//asl/memory",
|
||||
"//asl/memory:allocator",
|
||||
"//asl/base",
|
||||
"//asl/types:span",
|
||||
"//asl/hashing",
|
||||
@ -28,6 +29,7 @@ cc_library(
|
||||
deps = [
|
||||
"//asl/base",
|
||||
"//asl/memory",
|
||||
"//asl/memory:allocator",
|
||||
"//asl/types:maybe_uninit",
|
||||
"//asl/hashing",
|
||||
],
|
||||
@ -42,6 +44,7 @@ cc_library(
|
||||
deps = [
|
||||
"//asl/base",
|
||||
"//asl/memory",
|
||||
"//asl/memory:allocator",
|
||||
"//asl/hashing",
|
||||
":hash_set",
|
||||
],
|
||||
|
@ -9,16 +9,27 @@ package(
|
||||
cc_library(
|
||||
name = "memory",
|
||||
hdrs = [
|
||||
"allocator.hpp",
|
||||
"layout.hpp",
|
||||
"memory.hpp",
|
||||
],
|
||||
srcs = [
|
||||
"allocator.cpp",
|
||||
],
|
||||
deps = [
|
||||
"//asl/base",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "allocator",
|
||||
hdrs = [
|
||||
"allocator.hpp",
|
||||
],
|
||||
srcs = [
|
||||
"allocator.cpp",
|
||||
],
|
||||
deps = [
|
||||
"//asl/base",
|
||||
"//asl/memory",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
|
@ -14,6 +14,7 @@ cc_library(
|
||||
deps = [
|
||||
"//asl/base",
|
||||
"//asl/memory",
|
||||
"//asl/memory:allocator",
|
||||
"//asl/hashing",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
@ -86,6 +87,7 @@ cc_library(
|
||||
deps = [
|
||||
"//asl/base",
|
||||
"//asl/memory",
|
||||
"//asl/memory:allocator",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
Reference in New Issue
Block a user