diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-17 18:59:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-17 18:59:06 +0000 |
commit | 428d75ffd9c009f57e32204f54de337f6dc938ca (patch) | |
tree | 64bd2db29d19fda92d0d6a85792a6e7883249a22 | |
parent | f0f8e143702890037e750c782c14c50cd28ff470 (diff) | |
download | bcm5719-llvm-428d75ffd9c009f57e32204f54de337f6dc938ca.tar.gz bcm5719-llvm-428d75ffd9c009f57e32204f54de337f6dc938ca.zip |
The internal -fdump-record-layouts flag already dumps the layout when it was computed; no need to do so again at the end of the translation unit
llvm-svn: 125760
-rw-r--r-- | clang/lib/Parse/ParseAST.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/clang/lib/Parse/ParseAST.cpp b/clang/lib/Parse/ParseAST.cpp index d02787941b0..edb1675b99e 100644 --- a/clang/lib/Parse/ParseAST.cpp +++ b/clang/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<RecordType>(*I); - if (!RT) - continue; - - const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(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) { |