make this a bit nicer

llvm-svn: 38963
This commit is contained in:
Chris Lattner 2006-10-06 05:40:30 +00:00
parent 6f433fd2d3
commit 65de4b6a6d
1 changed files with 6 additions and 1 deletions

View File

@ -636,7 +636,12 @@ static void PrintASTs(Preprocessor &PP, unsigned MainFileID) {
ASTStreamerTy *Streamer = ASTStreamer_Init(PP, MainFileID, true);
while (Decl *D = ASTStreamer_ReadTopLevelDecl(Streamer)) {
std::cerr << "Read decl!\n";
std::cerr << "Read top-level decl!\n";
//if (const IdentifierInfo *II = D->getIdentifier())
// std::cerr << II->getName() << "\n";
//else
// std::cerr << "\n";
}
ASTStreamer_Terminate(Streamer);