[llvm] [NFC][TableGen] Use namespace qualifier to define `RecordKeeperImpl` (PR #166220)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 3 11:58:14 PST 2025
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/166220
None
>From aae7b22dd5bd3a943d1d5a43fa35d3f6efba03f9 Mon Sep 17 00:00:00 2001
From: Rahul Joshi <rjoshi at nvidia.com>
Date: Mon, 3 Nov 2025 11:57:13 -0800
Subject: [PATCH] [NFC][TableGen] Use namespace qualifier to define
`RecordKeeperImpl`
---
llvm/lib/TableGen/Record.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp
index afce803f3f568..8ad20b45f5e16 100644
--- a/llvm/lib/TableGen/Record.cpp
+++ b/llvm/lib/TableGen/Record.cpp
@@ -46,12 +46,11 @@ using namespace llvm;
// Context
//===----------------------------------------------------------------------===//
-namespace llvm::detail {
/// This class represents the internal implementation of the RecordKeeper.
/// It contains all of the contextual static state of the Record classes. It is
/// kept out-of-line to simplify dependencies, and also make it easier for
/// internal classes to access the uniquer state of the keeper.
-struct RecordKeeperImpl {
+struct detail::RecordKeeperImpl {
RecordKeeperImpl(RecordKeeper &RK)
: SharedBitRecTy(RK), SharedIntRecTy(RK), SharedStringRecTy(RK),
SharedDagRecTy(RK), AnyRecord(RK, {}), TheUnsetInit(RK),
@@ -99,7 +98,6 @@ struct RecordKeeperImpl {
void dumpAllocationStats(raw_ostream &OS) const;
};
-} // namespace llvm::detail
void detail::RecordKeeperImpl::dumpAllocationStats(raw_ostream &OS) const {
// Dump memory allocation related stats.
More information about the llvm-commits
mailing list