From 88c2596edc8eb475e20f6033de1ea01669695a0c 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144943 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenAction.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenAction.cpp') diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index db2bab9bf6..fb926e1e8e 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/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.2.3-18-g5258