From a032374ea0d069bff44045eee72ebdaa100ccc7a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 22 Feb 2013 09:09:42 +0000 Subject: Use references to attribute groups on the call/invoke instructions. Listing all of the attributes for the callee of a call/invoke instruction is way too much and makes the IR unreadable. Use references to attributes instead. llvm-svn: 175877 --- .../ObjCARC/ensure-that-exception-unwind-path-is-visited.ll | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll') diff --git a/llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll b/llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll index 1fd03e7d9c6..05257d1d5cf 100644 --- a/llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll +++ b/llvm/test/Transforms/ObjCARC/ensure-that-exception-unwind-path-is-visited.ll @@ -42,7 +42,7 @@ entry: ; CHECK: call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* %tmp2, i8* %tmp1) %call = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* %tmp2, i8* %tmp1), !dbg !37, !clang.arc.no_objc_arc_exceptions !38 call void @llvm.dbg.value(metadata !{i8* %call}, i64 0, metadata !12), !dbg !37 -; CHECK: call i8* @objc_retain(i8* %call) nounwind +; CHECK: call i8* @objc_retain(i8* %call) [[NUW:#[0-9]+]] %tmp3 = call i8* @objc_retain(i8* %call) nounwind, !dbg !39 call void @llvm.dbg.value(metadata !{i8* %call}, i64 0, metadata !25), !dbg !39 invoke fastcc void @ThrowFunc(i8* %call) @@ -104,6 +104,12 @@ declare void @NSLog(i8*, ...) declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone +; CHECK: attributes #0 = { ssp uwtable } +; CHECK: attributes #1 = { nounwind readnone } +; CHECK: attributes #2 = { nonlazybind } +; CHECK: attributes #3 = { noinline ssp uwtable } +; CHECK: attributes [[NUW]] = { nounwind } + !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!33, !34, !35, !36} -- cgit v1.2.3