From 841dd8861ad46c7efc00e9e8121f4af204c36e96 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 18 Nov 2011 00:26:59 +0000 Subject: Change ASTConsumer::HandleTopLevelDecl to return true for the parser to continue parsing or false to abort parsing. llvm-svn: 144943 --- clang/lib/CodeGen/CodeGenAction.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenAction.cpp') diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index db2bab9..fb926e1 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -86,7 +86,7 @@ namespace clang { LLVMIRGeneration.stopTimer(); } - virtual void HandleTopLevelDecl(DeclGroupRef D) { + virtual bool HandleTopLevelDecl(DeclGroupRef D) { PrettyStackTraceDecl CrashInfo(*D.begin(), SourceLocation(), Context->getSourceManager(), "LLVM IR generation of declaration"); @@ -98,6 +98,8 @@ namespace clang { if (llvm::TimePassesIsEnabled) LLVMIRGeneration.stopTimer(); + + return true; } virtual void HandleTranslationUnit(ASTContext &C) { -- cgit v1.1