On Nov 27, 2009, at 2:21 PM, Anders Carlsson wrote: > 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.
Hey Anders, There's no need to use VISIBILITY_HIDDEN anymore in .cpp files, -Chris > > 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 > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
