diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2010-05-17 13:49:20 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2010-05-17 13:49:20 +0000 |
commit | 79a9ad8e5eec3696989354be13a74a1106f64f72 (patch) | |
tree | ae8c62f22a9bb39a20abf2cc4581dbd1ebb2a5ac /lib/CodeGen/CGStmt.cpp | |
parent | 9a0fcfe659b65e1e1bba4ba5f35a12ffcd088ea0 (diff) |
Pick the correct personality function based on the language. This prevents link failures when C/ObjC code uses __attribute__((cleanup())) (previously this was inserting references to two libstc++ symbols; the personality function and the __terminate() function).
This is still probably wrong for Objective-C++ and adds a couple of lines in CGException that should probably be in the CGObjCRuntime subclass. The personality function is now only looked up in one place in CGException though, so this should be easier to fix in the future.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
0 files changed, 0 insertions, 0 deletions