From d598850203e05a604eb06f782dcf54529cd7a6f9 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 27 Nov 2009 22:21:51 +0000 Subject: Move the vtable builder to an anonymous namespace. llvm-svn: 90021 --- clang/lib/CodeGen/CGVtable.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGVtable.cpp') diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp index 4669515a4e7..57a82876cf6 100644 --- a/clang/lib/CodeGen/CGVtable.cpp +++ b/clang/lib/CodeGen/CGVtable.cpp @@ -22,7 +22,9 @@ using namespace clang; using namespace CodeGen; -class VtableBuilder { +namespace { + +class VISIBILITY_HIDDEN VtableBuilder { public: /// Index_t - Vtable index type. typedef uint64_t Index_t; @@ -782,6 +784,8 @@ VtableBuilder::Index_t VtableBuilder::VBlookup(CXXRecordDecl *D, return CGM.getVtableInfo().getVirtualBaseOffsetIndex(D, B); } +} + /// TypeConversionRequiresAdjustment - Returns whether conversion from a /// derived type to a base type requires adjustment. static bool -- cgit v1.2.3