Dale Johannesen | f0d6daf | 2008-04-14 17:56:54 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin -enable-eh | grep {isNullOrNil].eh"} | count 2 |
Bill Wendling | ef9211a | 2007-09-18 01:47:22 +0000 | [diff] [blame] | 2 | |
| 3 | %struct.NSString = type { } |
| 4 | %struct._objc__method_prototype_list = type opaque |
| 5 | %struct._objc_category = type { i8*, i8*, %struct._objc_method_list*, %struct._objc_method_list*, %struct._objc_protocol**, i32, %struct._prop_list_t* } |
| 6 | %struct._objc_method = type { %struct.objc_selector*, i8*, i8* } |
| 7 | %struct._objc_method_list = type opaque |
| 8 | %struct._objc_module = type { i32, i32, i8*, %struct._objc_symtab* } |
| 9 | %struct._objc_protocol = type { %struct._objc_protocol_extension*, i8*, %struct._objc_protocol**, %struct._objc__method_prototype_list*, %struct._objc__method_prototype_list* } |
| 10 | %struct._objc_protocol_extension = type opaque |
| 11 | %struct._objc_symtab = type { i32, %struct.objc_selector**, i16, i16, [1 x i8*] } |
| 12 | %struct._prop_list_t = type opaque |
| 13 | %struct.anon = type { %struct._objc__method_prototype_list*, i32, [1 x %struct._objc_method] } |
| 14 | %struct.objc_selector = type opaque |
| 15 | @"\01L_OBJC_SYMBOLS" = internal global { i32, i32, i16, i16, [1 x %struct._objc_category*] } { |
| 16 | i32 0, |
| 17 | i32 0, |
| 18 | i16 0, |
| 19 | i16 1, |
| 20 | [1 x %struct._objc_category*] [ %struct._objc_category* bitcast ({ i8*, i8*, %struct._objc_method_list*, i32, i32, i32, i32 }* @"\01L_OBJC_CATEGORY_NSString_local" to %struct._objc_category*) ] }, section "__OBJC,__symbols,regular,no_dead_strip" ; <{ i32, i32, i16, i16, [1 x %struct._objc_category*] }*> [#uses=2] |
| 21 | @"\01L_OBJC_CATEGORY_INSTANCE_METHODS_NSString_local" = internal global { i32, i32, [1 x %struct._objc_method] } { |
| 22 | i32 0, |
| 23 | i32 1, |
| 24 | [1 x %struct._objc_method] [ %struct._objc_method { |
| 25 | %struct.objc_selector* bitcast ([12 x i8]* @"\01L_OBJC_METH_VAR_NAME_0" to %struct.objc_selector*), |
| 26 | i8* getelementptr ([7 x i8]* @"\01L_OBJC_METH_VAR_TYPE_0", i32 0, i32 0), |
| 27 | i8* bitcast (i8 (%struct.NSString*, %struct.objc_selector*) signext * @"-[NSString(local) isNullOrNil]" to i8*) } ] }, section "__OBJC,__cat_inst_meth,regular,no_dead_strip" ; <{ i32, i32, [1 x %struct._objc_method] }*> [#uses=3] |
| 28 | @"\01L_OBJC_CATEGORY_NSString_local" = internal global { i8*, i8*, %struct._objc_method_list*, i32, i32, i32, i32 } { |
| 29 | i8* getelementptr ([6 x i8]* @"\01L_OBJC_CLASS_NAME_0", i32 0, i32 0), |
| 30 | i8* getelementptr ([9 x i8]* @"\01L_OBJC_CLASS_NAME_1", i32 0, i32 0), |
| 31 | %struct._objc_method_list* bitcast ({ i32, i32, [1 x %struct._objc_method] }* @"\01L_OBJC_CATEGORY_INSTANCE_METHODS_NSString_local" to %struct._objc_method_list*), |
| 32 | i32 0, |
| 33 | i32 0, |
| 34 | i32 28, |
| 35 | i32 0 }, section "__OBJC,__category,regular,no_dead_strip" ; <{ i8*, i8*, %struct._objc_method_list*, i32, i32, i32, i32 }*> [#uses=2] |
| 36 | @"\01L_OBJC_IMAGE_INFO" = internal constant [2 x i32] zeroinitializer, section "__OBJC,__image_info,regular" ; <[2 x i32]*> [#uses=1] |
| 37 | @"\01L_OBJC_MODULES" = internal global %struct._objc_module { |
| 38 | i32 7, |
| 39 | i32 16, |
| 40 | i8* getelementptr ([1 x i8]* @"\01L_OBJC_CLASS_NAME_2", i32 0, i32 0), |
| 41 | %struct._objc_symtab* bitcast ({ i32, i32, i16, i16, [1 x %struct._objc_category*] }* @"\01L_OBJC_SYMBOLS" to %struct._objc_symtab*) }, section "__OBJC,__module_info,regular,no_dead_strip" ; <%struct._objc_module*> [#uses=1] |
| 42 | @"\01.objc_class_ref_NSString" = internal global i8* @"\01.objc_class_name_NSString" ; <i8**> [#uses=0] |
| 43 | @"\01.objc_class_name_NSString" = external global i8 ; <i8*> [#uses=1] |
| 44 | @"\01.objc_category_name_NSString_local" = constant i32 0 ; <i32*> [#uses=1] |
| 45 | @"\01L_OBJC_CLASS_NAME_2" = internal global [1 x i8] zeroinitializer, section "__TEXT,__cstring,cstring_literals" ; <[1 x i8]*> [#uses=2] |
| 46 | @"\01L_OBJC_CLASS_NAME_1" = internal global [9 x i8] c"NSString\00", section "__TEXT,__cstring,cstring_literals" ; <[9 x i8]*> [#uses=2] |
| 47 | @"\01L_OBJC_CLASS_NAME_0" = internal global [6 x i8] c"local\00", section "__TEXT,__cstring,cstring_literals" ; <[6 x i8]*> [#uses=2] |
| 48 | @"\01L_OBJC_METH_VAR_NAME_0" = internal global [12 x i8] c"isNullOrNil\00", section "__TEXT,__cstring,cstring_literals" ; <[12 x i8]*> [#uses=3] |
| 49 | @"\01L_OBJC_METH_VAR_TYPE_0" = internal global [7 x i8] c"c8@0:4\00", section "__TEXT,__cstring,cstring_literals" ; <[7 x i8]*> [#uses=2] |
| 50 | @llvm.used = appending global [11 x i8*] [ i8* bitcast ({ i32, i32, i16, i16, [1 x %struct._objc_category*] }* @"\01L_OBJC_SYMBOLS" to i8*), i8* bitcast ({ i32, i32, [1 x %struct._objc_method] }* @"\01L_OBJC_CATEGORY_INSTANCE_METHODS_NSString_local" to i8*), i8* bitcast ({ i8*, i8*, %struct._objc_method_list*, i32, i32, i32, i32 }* @"\01L_OBJC_CATEGORY_NSString_local" to i8*), i8* bitcast ([2 x i32]* @"\01L_OBJC_IMAGE_INFO" to i8*), i8* bitcast (%struct._objc_module* @"\01L_OBJC_MODULES" to i8*), i8* bitcast (i32* @"\01.objc_category_name_NSString_local" to i8*), i8* getelementptr ([1 x i8]* @"\01L_OBJC_CLASS_NAME_2", i32 0, i32 0), i8* getelementptr ([9 x i8]* @"\01L_OBJC_CLASS_NAME_1", i32 0, i32 0), i8* getelementptr ([6 x i8]* @"\01L_OBJC_CLASS_NAME_0", i32 0, i32 0), i8* getelementptr ([12 x i8]* @"\01L_OBJC_METH_VAR_NAME_0", i32 0, i32 0), i8* getelementptr ([7 x i8]* @"\01L_OBJC_METH_VAR_TYPE_0", i32 0, i32 0) ], section "llvm.metadata" ; <[11 x i8*]*> [#uses=0] |
| 51 | |
| 52 | define internal i8 @"-[NSString(local) isNullOrNil]"(%struct.NSString* %self, %struct.objc_selector* %_cmd) signext { |
| 53 | entry: |
| 54 | %self_addr = alloca %struct.NSString* ; <%struct.NSString**> [#uses=1] |
| 55 | %_cmd_addr = alloca %struct.objc_selector* ; <%struct.objc_selector**> [#uses=1] |
| 56 | %retval = alloca i8, align 1 ; <i8*> [#uses=1] |
| 57 | %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0] |
| 58 | store %struct.NSString* %self, %struct.NSString** %self_addr |
| 59 | store %struct.objc_selector* %_cmd, %struct.objc_selector** %_cmd_addr |
| 60 | br label %return |
| 61 | |
| 62 | return: ; preds = %entry |
| 63 | %retval1 = load i8* %retval ; <i8> [#uses=1] |
| 64 | ret i8 %retval1 |
| 65 | } |