forked from OSchip/llvm-project
parent
6f433fd2d3
commit
65de4b6a6d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue