From 02916381eb87518ba6d541b065141a72b60561da Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Fri, 17 Apr 2015 00:37:53 +0000 Subject: [PATCH] DebugInfo: Fixup r235149 after IR change in r235145 This shouldn't have used varargs anyway; change the functions to be `void`. Also remove my accidentally-committed directory path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235152 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/DebugInfo/X86/inlined-formal-parameter.ll | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/DebugInfo/X86/inlined-formal-parameter.ll b/test/DebugInfo/X86/inlined-formal-parameter.ll index 3ac595f7174..a2ae0df97cb 100644 --- a/test/DebugInfo/X86/inlined-formal-parameter.ll +++ b/test/DebugInfo/X86/inlined-formal-parameter.ll @@ -2,9 +2,9 @@ ; RUN: llvm-dwarfdump -debug-dump=info %t.o | FileCheck %s ; Testcase generated using 'clang -g -O2 -S -emit-llvm' from the following: -;; void sink(); +;; void sink(void); ;; static __attribute__((always_inline)) void bar(int a) { sink(); } -;; void foo() { +;; void foo(void) { ;; bar(0); ;; bar(0); ;; } @@ -28,13 +28,13 @@ target triple = "x86_64-apple-darwin" define void @foo() #0 { entry: tail call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !12, metadata !17) #3, !dbg !18 - tail call void (...)* @sink() #3, !dbg !20 + tail call void @sink() #3, !dbg !20 tail call void @llvm.dbg.value(metadata i32 0, i64 0, metadata !12, metadata !17) #3, !dbg !21 - tail call void (...)* @sink() #3, !dbg !23 + tail call void @sink() #3, !dbg !23 ret void, !dbg !24 } -declare void @sink(...) #1 +declare void @sink() #1 ; Function Attrs: nounwind readnone declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #2 @@ -49,10 +49,10 @@ attributes #3 = { nounwind } !llvm.ident = !{!16} !0 = !MDCompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.7.0 (trunk 235110) (llvm/trunk 235108)", isOptimized: true, runtimeVersion: 0, emissionKind: 1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) -!1 = !MDFile(filename: "t.c", directory: "/Users/dexonsmith/data/llvm/staging/play/inlined-at") +!1 = !MDFile(filename: "t.c", directory: "/path/to/dir") !2 = !{} !3 = !{!4, !7} -!4 = !MDSubprogram(name: "foo", scope: !1, file: !1, line: 3, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, isOptimized: true, function: void ()* @foo, variables: !2) +!4 = !MDSubprogram(name: "foo", scope: !1, file: !1, line: 3, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: true, function: void ()* @foo, variables: !2) !5 = !MDSubroutineType(types: !6) !6 = !{null} !7 = !MDSubprogram(name: "bar", scope: !1, file: !1, line: 2, type: !8, isLocal: true, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: true, variables: !11)