[llvm] 5ba746d - [NFC][TableGen] Use namespace qualifier to define `RecordKeeperImpl` (#166220)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 4 07:10:56 PST 2025


Author: Rahul Joshi
Date: 2025-11-04T07:10:53-08:00
New Revision: 5ba746d9a0f7850abbbd5d6f7c5fabcfe0a22e45

URL: https://github.com/llvm/llvm-project/commit/5ba746d9a0f7850abbbd5d6f7c5fabcfe0a22e45
DIFF: https://github.com/llvm/llvm-project/commit/5ba746d9a0f7850abbbd5d6f7c5fabcfe0a22e45.diff

LOG: [NFC][TableGen] Use namespace qualifier to define `RecordKeeperImpl` (#166220)

Added: 
    

Modified: 
    llvm/lib/TableGen/Record.cpp

Removed: 
    


################################################################################
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