From: Anders Carlsson Date: Fri, 27 Nov 2009 22:21:51 +0000 (+0000) Subject: Move the vtable builder to an anonymous namespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27f69d0793978d92aba2ac68a41353f73cbdcaf2;p=clang Move the vtable builder to an anonymous namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90021 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 4669515a4e..57a82876cf 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/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