[cfe-commits] r90021 - /cfe/trunk/lib/CodeGen/CGVtable.cpp

Anders Carlsson andersca at mac.com
Fri Nov 27 14:21:51 PST 2009


Author: andersca
Date: Fri Nov 27 16:21:51 2009
New Revision: 90021

URL: http://llvm.org/viewvc/llvm-project?rev=90021&view=rev
Log:
Move the vtable builder to an anonymous namespace.

Modified:
    cfe/trunk/lib/CodeGen/CGVtable.cpp

Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=90021&r1=90020&r2=90021&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Fri Nov 27 16:21:51 2009
@@ -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 @@
   return CGM.getVtableInfo().getVirtualBaseOffsetIndex(D, B);
 }
 
+}
+
 /// TypeConversionRequiresAdjustment - Returns whether conversion from a 
 /// derived type to a base type requires adjustment.
 static bool





More information about the cfe-commits mailing list