summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/destructors.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-08 06:48:12 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-08 06:48:12 +0000
commitbe349def4b71ae15be9877f1ae366ce41f5780e3 (patch)
tree665a5b22615c278fdef2efbf9cfc4cb6b98262b5 /clang/test/CodeGenCXX/destructors.cpp
parent747eb7840abcb638d6bc9590b3345608286f58f0 (diff)
downloadbcm5719-llvm-be349def4b71ae15be9877f1ae366ce41f5780e3.tar.gz
bcm5719-llvm-be349def4b71ae15be9877f1ae366ce41f5780e3.zip
Mark calls to 'throw()' functions as nounwind, and mark the functions nounwind
as well. llvm-svn: 107858
Diffstat (limited to 'clang/test/CodeGenCXX/destructors.cpp')
-rw-r--r--clang/test/CodeGenCXX/destructors.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/clang/test/CodeGenCXX/destructors.cpp b/clang/test/CodeGenCXX/destructors.cpp
index 965aea52ee3..8efaf01f3c6 100644
--- a/clang/test/CodeGenCXX/destructors.cpp
+++ b/clang/test/CodeGenCXX/destructors.cpp
@@ -45,7 +45,8 @@ namespace PR7526 {
allocator::~allocator() throw() { foo(); }
// CHECK: define linkonce_odr void @_ZN6PR752617allocator_derivedD1Ev
- // CHECK: call void @__cxa_call_unexpected
+ // CHECK-NOT: call void @__cxa_call_unexpected
+ // CHECK: }
void foo() {
allocator_derived ad;
}
@@ -268,13 +269,11 @@ namespace test5 {
// CHECK: define internal void @_ZN5test312_GLOBAL__N_11DD0Ev(
// CHECK: invoke void @_ZN5test312_GLOBAL__N_11DD1Ev(
- // CHECK: call void @_ZdlPv(
+ // CHECK: call void @_ZdlPv({{.*}}) nounwind
// CHECK: ret void
// CHECK: call i8* @llvm.eh.exception(
- // CHECK: invoke void @_ZdlPv
+ // CHECK: call void @_ZdlPv({{.*}}) nounwind
// CHECK: call void @_Unwind_Resume_or_Rethrow
- // CHECK: call i8* @llvm.eh.exception(
- // CHECK: call void @_ZSt9terminatev(
// Checked at top of file:
// @_ZN5test312_GLOBAL__N_11DD1Ev = alias internal {{.*}} @_ZN5test312_GLOBAL__N_11DD2Ev
@@ -295,13 +294,11 @@ namespace test5 {
// CHECK: define internal void @_ZN5test312_GLOBAL__N_11CD0Ev(
// CHECK: invoke void @_ZN5test312_GLOBAL__N_11CD1Ev(
- // CHECK: call void @_ZdlPv(
+ // CHECK: call void @_ZdlPv({{.*}}) nounwind
// CHECK: ret void
// CHECK: call i8* @llvm.eh.exception()
- // CHECK: invoke void @_ZdlPv(
+ // CHECK: call void @_ZdlPv({{.*}}) nounwind
// CHECK: call void @_Unwind_Resume_or_Rethrow(
- // CHECK: call i8* @llvm.eh.exception()
- // CHECK: call void @_ZSt9terminatev()
// CHECK: define internal void @_ZThn8_N5test312_GLOBAL__N_11CD1Ev(
// CHECK: getelementptr inbounds i8* {{.*}}, i64 -8
OpenPOWER on IntegriCloud