summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-18 00:26:59 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-18 00:26:59 +0000
commit841dd8861ad46c7efc00e9e8121f4af204c36e96 (patch)
treeb27f2808d891a2201b42c148736a0fabf9fcca7c /clang/lib/CodeGen/CodeGenAction.cpp
parenteffdbf55acb208f4c0f302903c0333d46146b7f2 (diff)
downloadbcm5719-llvm-841dd8861ad46c7efc00e9e8121f4af204c36e96.tar.gz
bcm5719-llvm-841dd8861ad46c7efc00e9e8121f4af204c36e96.zip
Change ASTConsumer::HandleTopLevelDecl to return true for the parser to continue
parsing or false to abort parsing. llvm-svn: 144943
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index db2bab9bf61..fb926e1e8e6 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) {
OpenPOWER on IntegriCloud