diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-02-25 22:27:14 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-02-25 22:27:14 +0000 |
commit | 35989a76ac4aed266df17ee37eba4a138ff99f34 (patch) | |
tree | 63e02f78098d23cf55766b6683cec9505dee62f6 /test | |
parent | 3f0a9af13bec64f3bc4bee06a57e18feeb766570 (diff) | |
download | llvm-35989a76ac4aed266df17ee37eba4a138ff99f34.tar.gz llvm-35989a76ac4aed266df17ee37eba4a138ff99f34.tar.bz2 llvm-35989a76ac4aed266df17ee37eba4a138ff99f34.tar.xz |
Address review comments for r202188.
This is refactoring / simplifying code, updating comments and enabling the
testcase on non-x86 platforms.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/DebugInfo/varargs.ll (renamed from test/DebugInfo/X86/varargs.ll) | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/test/DebugInfo/X86/varargs.ll b/test/DebugInfo/varargs.ll index e724d75445..52e9e8b724 100644 --- a/test/DebugInfo/X86/varargs.ll +++ b/test/DebugInfo/varargs.ll @@ -1,18 +1,31 @@ ; RUN: llc -O0 -filetype=obj -o %t.o %s ; RUN: llvm-dwarfdump -debug-dump=info %t.o | FileCheck %s +; REQUIRES: object-emission +; +; Test debug info for variadic function arguments. +; Created from tools/clang/tests/CodeGenCXX/debug-info-varargs.cpp +; +; The ... parameter of variadic should be emitted as +; DW_TAG_unspecified_parameters. ; ; Normal variadic function. +; void b(int c, ...); ; ; CHECK: DW_TAG_subprogram ; CHECK-NOT: DW_TAG +; CHECK: DW_AT_name {{.*}} "b" +; CHECK-NOT: DW_TAG ; CHECK: DW_TAG_formal_parameter ; CHECK-NOT: DW_TAG ; CHECK: DW_TAG_unspecified_parameters ; ; Variadic C++ member function. +; struct A { void a(int c, ...); } ; ; CHECK: DW_TAG_subprogram ; CHECK-NOT: DW_TAG +; CHECK: DW_AT_name {{.*}} "a" +; CHECK-NOT: DW_TAG ; CHECK: DW_TAG_formal_parameter ; CHECK-NOT: DW_TAG ; CHECK: DW_TAG_formal_parameter @@ -20,6 +33,7 @@ ; CHECK: DW_TAG_unspecified_parameters ; ; Variadic function pointer. +; void (*fptr)(int, ...); ; ; CHECK: DW_TAG_subroutine_type ; CHECK-NOT: DW_TAG @@ -27,12 +41,7 @@ ; CHECK-NOT: DW_TAG ; CHECK: DW_TAG_unspecified_parameters ; -; Test debug info for variadic function arguments. -; Created from tools/clang/tests/CodeGenCXX/debug-info-varargs.cpp -; ; ModuleID = 'llvm/tools/clang/test/CodeGenCXX/debug-info-varargs.cpp' -target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-apple-macosx10.9.0" %struct.A = type { i8 } |