Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
75378384
Commit
75378384
authored
13 years ago
by
Dan Gohman
Browse files
Options
Downloads
Patches
Plain Diff
Fix this test to work with and without Asserts mode.
llvm-svn: 150713
parent
0cdf2644
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clang/test/CodeGenObjC/arc-no-arc-exceptions.m
+10
-13
10 additions, 13 deletions
clang/test/CodeGenObjC/arc-no-arc-exceptions.m
with
10 additions
and
13 deletions
clang/test/CodeGenObjC/arc-no-arc-exceptions.m
+
10
−
13
View file @
75378384
...
...
@@ -2,9 +2,6 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -fblocks -fexceptions -fobjc-exceptions -O0 -disable-llvm-optzns -o - %s | FileCheck -check-prefix=NO-METADATA %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -fblocks -fexceptions -fobjc-exceptions -O2 -disable-llvm-optzns -o - %s -fobjc-arc-exceptions | FileCheck -check-prefix=NO-METADATA %s
// FIXME: This test is -Asserts-intolerant.
// REQUIRES: asserts
// The front-end should emit clang.arc.no_objc_arc_exceptions in -fobjc-arc-exceptions
// mode when optimization is enabled, and not otherwise.
...
...
@@ -12,8 +9,8 @@ void thrower(void);
void
not
(
void
)
__attribute__
((
nothrow
));
// CHECK: define void @test0(
// CHECK: call void @thrower(), !clang.arc.no_objc_arc_exceptions !
4
// CHECK: call void @not() nounwind, !clang.arc.no_objc_arc_exceptions !
4
// CHECK: call void @thrower(), !clang.arc.no_objc_arc_exceptions !
// CHECK: call void @not() nounwind, !clang.arc.no_objc_arc_exceptions !
// NO-METADATA: define void @test0(
// NO-METADATA-NOT: !clang.arc.no_objc_arc_exceptions
// NO-METADATA: }
...
...
@@ -23,8 +20,8 @@ void test0(void) {
}
// CHECK: define void @test1(
// CHECK: call void @thrower(), !clang.arc.no_objc_arc_exceptions !
4
// CHECK: call void @not() nounwind, !clang.arc.no_objc_arc_exceptions !
4
// CHECK: call void @thrower(), !clang.arc.no_objc_arc_exceptions !
// CHECK: call void @not() nounwind, !clang.arc.no_objc_arc_exceptions !
// NO-METADATA: define void @test1(
// NO-METADATA-NOT: !clang.arc.no_objc_arc_exceptions
// NO-METADATA: }
...
...
@@ -37,8 +34,8 @@ void test1(id x) {
void
NSLog
(
id
,
...);
// CHECK: define void @test2(
// CHECK: invoke void (i8*, ...)* @NSLog(i8* bitcast (%struct.NSConstantString* @_unnamed_cfstring_ to i8*), i32* %
x2
)
// CHECK: to label %
invoke.cont
unwind label %
lpad
, !clang.arc.no_objc_arc_exceptions !
4
// CHECK: invoke void (i8*, ...)* @NSLog(i8* bitcast (%struct.NSConstantString* @_unnamed_cfstring_ to i8*), i32* %
{{.*}}
)
// CHECK: to label %
{{.*}}
unwind label %
{{.*}}
, !clang.arc.no_objc_arc_exceptions !
// NO-METADATA: define void @test2(
// NO-METADATA-NOT: !clang.arc.no_objc_arc_exceptions
// NO-METADATA: }
...
...
@@ -50,8 +47,8 @@ void test2(void) {
}
// CHECK: define void @test3(
// CHECK: invoke void %
9(i8* %7
)
// CHECK: to label %
invoke.cont
unwind label %
lpad
, !clang.arc.no_objc_arc_exceptions !
4
// CHECK: invoke void %
{{.*}}(i8* %{{.*}}
)
// CHECK: to label %
{{.*}}
unwind label %
{{.*}}
, !clang.arc.no_objc_arc_exceptions !
// NO-METADATA: define void @test3(
// NO-METADATA-NOT: !clang.arc.no_objc_arc_exceptions
// NO-METADATA: }
...
...
@@ -65,8 +62,8 @@ void test3(void) {
}
// CHECK: define void @test4(
// CHECK: invoke void %
13(i8* %11
)
// CHECK: to label %
invoke.cont
unwind label %
lpad
, !clang.arc.no_objc_arc_exceptions !
4
// CHECK: invoke void %
{{.*}}(i8* %{{.*}}
)
// CHECK: to label %
{{.*}}
unwind label %
{{.*}}
, !clang.arc.no_objc_arc_exceptions !
// NO-METADATA: define void @test4(
// NO-METADATA-NOT: !clang.arc.no_objc_arc_exceptions
// NO-METADATA: }
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment