Remove the -enable-sjlj-eh option, which doesn't do anything.
[oota-llvm.git] / test / CodeGen / Generic / 2007-12-31-UnusedSelector.ll
1 ; RUN: llc < %s
2 ; PR1833
3
4         %struct.__class_type_info_pseudo = type { %struct.__type_info_pseudo }
5         %struct.__type_info_pseudo = type { i8*, i8* }
6 @_ZTI2e1 = external constant %struct.__class_type_info_pseudo           ; <%struct.__class_type_info_pseudo*> [#uses=1]
7
8 define void @_Z7ex_testv() {
9 entry:
10         invoke void @__cxa_throw( i8* null, i8* bitcast (%struct.__class_type_info_pseudo* @_ZTI2e1 to i8*), void (i8*)* null ) noreturn 
11                         to label %UnifiedUnreachableBlock unwind label %lpad
12
13 bb14:           ; preds = %lpad
14         unreachable
15
16 lpad:           ; preds = %entry
17         invoke void @__cxa_end_catch( )
18                         to label %bb14 unwind label %lpad17
19
20 lpad17:         ; preds = %lpad
21         %eh_select20 = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* null, i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*), i8* null )                ; <i32> [#uses=0]
22         unreachable
23
24 UnifiedUnreachableBlock:                ; preds = %entry
25         unreachable
26 }
27
28 declare void @__cxa_throw(i8*, i8*, void (i8*)*) noreturn 
29
30 declare i32 @llvm.eh.selector.i32(i8*, i8*, ...)
31
32 declare void @__cxa_end_catch()
33
34 declare i32 @__gxx_personality_v0(...)