[cfe-commits] r104693 - /cfe/trunk/lib/AST/RecordLayoutBuilder.cpp

Benjamin Kramer benny.kra at googlemail.com
Wed May 26 02:58:31 PDT 2010


Author: d0k
Date: Wed May 26 04:58:31 2010
New Revision: 104693

URL: http://llvm.org/viewvc/llvm-project?rev=104693&view=rev
Log:
Move RecordLayoutBuilder into an anonymous namespace.

Modified:
    cfe/trunk/lib/AST/RecordLayoutBuilder.cpp

Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=104693&r1=104692&r2=104693&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Wed May 26 04:58:31 2010
@@ -21,6 +21,7 @@
 
 using namespace clang;
 
+namespace {
 class RecordLayoutBuilder {
   // FIXME: Remove this and make the appropriate fields public.
   friend class clang::ASTContext;
@@ -172,6 +173,7 @@
 public:
   static const CXXMethodDecl *ComputeKeyFunction(const CXXRecordDecl *RD);
 };
+} // end anonymous namespace
 
 RecordLayoutBuilder::RecordLayoutBuilder(ASTContext &Context)
   : Context(Context), Size(0), Alignment(8), Packed(false), 





More information about the cfe-commits mailing list