summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-07-07 00:12:30 +0000
committerNico Weber <nicolasweber@gmx.de>2014-07-07 00:12:30 +0000
commit9b982078e9076b9b36586ae8b6bf21a3868f1b93 (patch)
treef5c493e854ded43d6e037219e2ab42d549c7b689 /clang/lib/CodeGen/CGException.cpp
parent784a5a41e79169714bd640df2c3c062b6f11dc20 (diff)
downloadbcm5719-llvm-9b982078e9076b9b36586ae8b6bf21a3868f1b93.tar.gz
bcm5719-llvm-9b982078e9076b9b36586ae8b6bf21a3868f1b93.zip
Add an AST node for __leave statements, hook it up.
Codegen is still missing (and I won't work on that), but __leave is now as implemented as __try and friends. llvm-svn: 212425
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index ffcab074caa..1bbda5cbf09 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -1632,3 +1632,7 @@ llvm::BasicBlock *CodeGenFunction::getEHResumeBlock(bool isCleanup) {
void CodeGenFunction::EmitSEHTryStmt(const SEHTryStmt &S) {
CGM.ErrorUnsupported(&S, "SEH __try");
}
+
+void CodeGenFunction::EmitSEHLeaveStmt(const SEHLeaveStmt &S) {
+ CGM.ErrorUnsupported(&S, "SEH __leave");
+}
OpenPOWER on IntegriCloud