Skip to content

Commit

Permalink
Follow-up to carbon-language#4487 to fix file names.
Browse files Browse the repository at this point in the history
This switches from `int_store*` to `int*` as this file contains both the
ID and the store for integers.

This was supposed to be added to carbon-language#4487 before merging, apologies for
missing that.
  • Loading branch information
chandlerc committed Nov 13, 2024
1 parent 3ba4997 commit 73c705a
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions toolchain/base/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ cc_test(
)

cc_library(
name = "int_store",
srcs = ["int_store.cpp"],
hdrs = ["int_store.h"],
name = "int",
srcs = ["int.cpp"],
hdrs = ["int.h"],
deps = [
":index_base",
":mem_usage",
Expand All @@ -108,11 +108,11 @@ cc_library(
)

cc_test(
name = "int_store_test",
name = "int_test",
size = "small",
srcs = ["int_store_test.cpp"],
srcs = ["int_test.cpp"],
deps = [
":int_store",
":int",
"//testing/base:gtest_main",
"//testing/base:test_raw_ostream",
"//toolchain/testing:yaml_test_helpers",
Expand All @@ -124,7 +124,7 @@ cc_library(
name = "shared_value_stores",
hdrs = ["shared_value_stores.h"],
deps = [
":int_store",
":int",
":mem_usage",
":value_ids",
":value_store",
Expand Down
2 changes: 1 addition & 1 deletion toolchain/base/int_store.cpp → toolchain/base/int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "toolchain/base/int_store.h"
#include "toolchain/base/int.h"

namespace Carbon {

Expand Down
6 changes: 3 additions & 3 deletions toolchain/base/int_store.h → toolchain/base/int.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef CARBON_TOOLCHAIN_BASE_INT_STORE_H_
#define CARBON_TOOLCHAIN_BASE_INT_STORE_H_
#ifndef CARBON_TOOLCHAIN_BASE_INT_H_
#define CARBON_TOOLCHAIN_BASE_INT_H_

#include "common/check.h"
#include "llvm/ADT/APFloat.h"
Expand Down Expand Up @@ -425,4 +425,4 @@ constexpr IntStore::APIntId IntStore::APIntId::Invalid(

} // namespace Carbon

#endif // CARBON_TOOLCHAIN_BASE_INT_STORE_H_
#endif // CARBON_TOOLCHAIN_BASE_INT_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "toolchain/base/int_store.h"
#include "toolchain/base/int.h"

#include <gmock/gmock.h>
#include <gtest/gtest.h>
Expand Down
2 changes: 1 addition & 1 deletion toolchain/base/shared_value_stores.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef CARBON_TOOLCHAIN_BASE_SHARED_VALUE_STORES_H_
#define CARBON_TOOLCHAIN_BASE_SHARED_VALUE_STORES_H_

#include "toolchain/base/int_store.h"
#include "toolchain/base/int.h"
#include "toolchain/base/mem_usage.h"
#include "toolchain/base/value_ids.h"
#include "toolchain/base/value_store.h"
Expand Down
8 changes: 4 additions & 4 deletions toolchain/sem_ir/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cc_library(
"//common:check",
"//common:ostream",
"//toolchain/base:index_base",
"//toolchain/base:int_store",
"//toolchain/base:int",
"//toolchain/base:shared_value_stores",
"//toolchain/base:value_ids",
"//toolchain/diagnostics:diagnostic_emitter",
Expand All @@ -56,7 +56,7 @@ cc_library(
deps = [
"//common:check",
"//common:enum_base",
"//toolchain/base:int_store",
"//toolchain/base:int",
"//toolchain/parse:node_kind",
"//toolchain/sem_ir:builtin_inst_kind",
"//toolchain/sem_ir:ids",
Expand All @@ -78,7 +78,7 @@ cc_library(
"//common:ostream",
"//common:struct_reflection",
"//toolchain/base:index_base",
"//toolchain/base:int_store",
"//toolchain/base:int",
"//toolchain/base:value_store",
"@llvm-project//llvm:Support",
],
Expand Down Expand Up @@ -133,7 +133,7 @@ cc_library(
"//common:map",
"//common:ostream",
"//common:set",
"//toolchain/base:int_store",
"//toolchain/base:int",
"//toolchain/base:kind_switch",
"//toolchain/base:shared_value_stores",
"//toolchain/base:value_ids",
Expand Down
2 changes: 1 addition & 1 deletion toolchain/sem_ir/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "llvm/ADT/iterator_range.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/FormatVariadic.h"
#include "toolchain/base/int_store.h"
#include "toolchain/base/int.h"
#include "toolchain/base/shared_value_stores.h"
#include "toolchain/base/value_store.h"
#include "toolchain/base/yaml.h"
Expand Down
2 changes: 1 addition & 1 deletion toolchain/sem_ir/id_kind.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <algorithm>

#include "toolchain/base/int_store.h"
#include "toolchain/base/int.h"
#include "toolchain/sem_ir/ids.h"

namespace Carbon::SemIR {
Expand Down
2 changes: 1 addition & 1 deletion toolchain/sem_ir/inst.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "common/ostream.h"
#include "common/struct_reflection.h"
#include "toolchain/base/index_base.h"
#include "toolchain/base/int_store.h"
#include "toolchain/base/int.h"
#include "toolchain/base/value_store.h"
#include "toolchain/sem_ir/block_value_store.h"
#include "toolchain/sem_ir/builtin_inst_kind.h"
Expand Down
2 changes: 1 addition & 1 deletion toolchain/sem_ir/typed_insts.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef CARBON_TOOLCHAIN_SEM_IR_TYPED_INSTS_H_
#define CARBON_TOOLCHAIN_SEM_IR_TYPED_INSTS_H_

#include "toolchain/base/int_store.h"
#include "toolchain/base/int.h"
#include "toolchain/parse/node_ids.h"
#include "toolchain/sem_ir/builtin_inst_kind.h"
#include "toolchain/sem_ir/ids.h"
Expand Down

0 comments on commit 73c705a

Please sign in to comment.