r174229 - clang/test/CodeGenCXX/debug-info-class.cpp: Fixup for -Asserts.

NAKAMURA Takumi geek4civic at gmail.com
Sat Feb 2 15:24:08 PST 2013


Renato, sorry for the breakage.

I also know, it has been broken for targeting msvc. When you apply a
tweak, please put "XFAIL:win32", or...

--- a/test/CodeGenCXX/debug-info-class.cpp
+++ b/test/CodeGenCXX/debug-info-class.cpp
@@ -1,4 +1,3 @@
-// RUN: %clang  -emit-llvm -g -S %s -o - | FileCheck %s
 struct foo;
 void func(foo *f) {
 }
@@ -8,6 +7,7 @@ void func(bar *f) {
 union baz;
 void func(baz *f) {
 }
+
 class B {
 public:
   virtual ~B();
@@ -30,7 +30,11 @@ int main(int argc, char **argv) {
   return 0;
 }

-// CHECK: invoke void @_ZN1BD1Ev(%class.B* %b)
+// RUN: %clang -target x86_64-unknown_unknown -emit-llvm -g -S %s -o
- | FileCheck %s
+// RUN: %clang -target i686-cygwin -emit-llvm -g -S %s -o - | FileCheck %s
+// RUN: %clang -target armv7l-unknown-linux-gnueabihf -emit-llvm -g
-S %s -o - | FileCheck %s
+
+// CHECK: invoke {{.+}} @_ZN1BD1Ev(%class.B* %b)
 // CHECK-NEXT: unwind label %{{.+}}, !dbg ![[EXCEPTLOC:.*]]
 // CHECK: store i32 0, i32* %{{.+}}, !dbg ![[RETLOC:.*]]
 // CHECK: DW_TAG_structure_type ] [foo]

2013/2/3 Renato Golin <renato.golin at linaro.org>:
> On 1 February 2013 22:53, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
>>
>> +// CHECK: invoke void @_ZN1BD1Ev(%class.B* %b)
>
>
> Hi Nakamura,
>
> This line breaks on ARM, since the ABI suggests you return the object to
> avoid saving it on the caller. Don't worry, I'll make it a pattern match as
> soon as svn gets back online. This is more FYI to Galina, to avoid
> duplication of work chasing bugs. ;)
>
> cheers,
> --renato



More information about the cfe-commits mailing list