From ae1b85d984af5fbf4010830ae52cbb721bfad9ba Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Wed, 2 Dec 2009 19:07:44 +0000 Subject: [PATCH] Put the Builder classes into the anonymous namespace. llvm-svn: 90335 --- clang/lib/CodeGen/CGRTTI.cpp | 2 ++ clang/lib/CodeGen/CGVtable.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp index f52c6586d76f..f43920c13f19 100644 --- a/clang/lib/CodeGen/CGRTTI.cpp +++ b/clang/lib/CodeGen/CGRTTI.cpp @@ -17,6 +17,7 @@ using namespace clang; using namespace CodeGen; +namespace { class RTTIBuilder { CodeGenModule &CGM; // Per-module state. llvm::LLVMContext &VMContext; @@ -406,6 +407,7 @@ public: } } }; +} llvm::Constant *CodeGenModule::GenerateRTTIRef(const CXXRecordDecl *RD) { RTTIBuilder b(*this); diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp index d7b81275460f..146b96f75f81 100644 --- a/clang/lib/CodeGen/CGVtable.cpp +++ b/clang/lib/CodeGen/CGVtable.cpp @@ -770,7 +770,6 @@ public: delete Path; } }; - } /// TypeConversionRequiresAdjustment - Returns whether conversion from a @@ -1109,6 +1108,7 @@ llvm::Constant *CodeGenModule::GenerateVtable(const CXXRecordDecl *LayoutClass, return vtable; } +namespace { class VTTBuilder { /// Inits - The list of values built for the VTT. std::vector &Inits; @@ -1271,6 +1271,7 @@ public: VirtualVTTs(Class); } }; +} llvm::Constant *CodeGenModule::GenerateVTT(const CXXRecordDecl *RD) { // Only classes that have virtual bases need a VTT.