mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-28 19:54:53 +01:00
With this, only main.cpp instantiates an arena. Maybe we'll want to split that up more later (e.g., so that the runtime interpreter uses its own arena), but given the intent to have type-checking update the AST, I thought this was a reasonable approach for now in order to avoid ownership complexities. Fixes #769
48 lines
955 B
Python
48 lines
955 B
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
package(default_visibility = ["//executable_semantics:__subpackages__"])
|
|
|
|
cc_library(
|
|
name = "arena",
|
|
hdrs = ["arena.h"],
|
|
deps = [
|
|
":ptr",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "error",
|
|
hdrs = ["error.h"],
|
|
deps = [
|
|
"//common:check",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "error_test",
|
|
srcs = ["error_test.cpp"],
|
|
deps = [
|
|
":error",
|
|
"@llvm-project//llvm:gtest",
|
|
"@llvm-project//llvm:gtest_main",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "ptr",
|
|
hdrs = ["ptr.h"],
|
|
deps = [
|
|
"//common:check",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "tracing_flag",
|
|
srcs = ["tracing_flag.cpp"],
|
|
hdrs = ["tracing_flag.h"],
|
|
visibility = ["//executable_semantics:__subpackages__"],
|
|
)
|