diff options
author | Mike Stump <mrs@apple.com> | 2009-12-07 23:38:24 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-12-07 23:38:24 +0000 |
commit | 1d849219a5b44aa25008a83fa8fbfbd385f6a3ff (patch) | |
tree | 8cb0d410c81a29428450e1e2a538414a01ede463 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | fb1654d4674b01fc5afd48c8b199f9d71a40c5a5 (diff) | |
download | bcm5719-llvm-1d849219a5b44aa25008a83fa8fbfbd385f6a3ff.tar.gz bcm5719-llvm-1d849219a5b44aa25008a83fa8fbfbd385f6a3ff.zip |
Add codegen support for exception specifications. WIP.
llvm-svn: 90817
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index d35c9621129..78aa95686a2 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -131,6 +131,7 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) { } EmitFunctionEpilog(*CurFnInfo, ReturnValue); + EmitEndEHSpec(CurCodeDecl); // If someone did an indirect goto, emit the indirect goto block at the end of // the function. @@ -215,6 +216,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, ReturnValue = CreateTempAlloca(ConvertType(RetTy), "retval"); } + EmitStartEHSpec(CurCodeDecl); EmitFunctionProlog(*CurFnInfo, CurFn, Args); // If any of the arguments have a variably modified type, make sure to |