From 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- lib/Parse/ParseAST.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'lib/Parse/ParseAST.cpp') diff --git a/lib/Parse/ParseAST.cpp b/lib/Parse/ParseAST.cpp index d027879..edb1675 100644 --- a/lib/Parse/ParseAST.cpp +++ b/lib/Parse/ParseAST.cpp @@ -25,26 +25,6 @@ using namespace clang; -static void DumpRecordLayouts(ASTContext &C) { - for (ASTContext::type_iterator I = C.types_begin(), E = C.types_end(); - I != E; ++I) { - const RecordType *RT = dyn_cast(*I); - if (!RT) - continue; - - const CXXRecordDecl *RD = dyn_cast(RT->getDecl()); - if (!RD || RD->isImplicit() || RD->isDependentType() || - RD->isInvalidDecl() || !RD->getDefinition()) - continue; - - // FIXME: Do we really need to hard code this? - if (RD->getQualifiedNameAsString() == "__va_list_tag") - continue; - - C.DumpRecordLayout(RD, llvm::errs()); - } -} - //===----------------------------------------------------------------------===// // Public interface to the file //===----------------------------------------------------------------------===// @@ -97,10 +77,6 @@ void clang::ParseAST(Sema &S, bool PrintStats) { E = S.WeakTopLevelDecls().end(); I != E; ++I) Consumer->HandleTopLevelDecl(DeclGroupRef(*I)); - // Dump record layouts, if requested. - if (S.getLangOptions().DumpRecordLayouts) - DumpRecordLayouts(S.getASTContext()); - Consumer->HandleTranslationUnit(S.getASTContext()); if (PrintStats) { -- cgit v1.1