[llvm] r202199 - Address review comments for r202188.
Eric Christopher
echristo at gmail.com
Tue Feb 25 15:07:33 PST 2014
> +; 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
Are the CHECK-NOT just used to skip or ...? Bit confusing. Can you comment them?
-eric
> ;
> ; 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 }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list