]> granicus.if.org Git - clang/commitdiff
Move the vtable builder to an anonymous namespace.
authorAnders Carlsson <andersca@mac.com>
Fri, 27 Nov 2009 22:21:51 +0000 (22:21 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 27 Nov 2009 22:21:51 +0000 (22:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90021 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

index 4669515a4e7ebdf8028d5f381a21c41cc88d585b..57a82876cf6c7da844488df5bcb39814f439bd20 100644 (file)
@@ -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