[PATCH] Use an Itanium triple in DWARF debug info tests

Timur Iskhodzhanov timurrrr at google.com
Wed Jan 29 16:55:31 PST 2014


  Added a FIXME line to the bad tests

Hi echristo, rnk,

http://llvm-reviews.chandlerc.com/D2652

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D2652?vs=6757&id=6758#toc

Files:
  test/CodeGen/debug-dead-local-var.c
  test/CodeGen/debug-info-var-location.c
  test/CodeGenCXX/debug-info-byval.cpp
  test/CodeGenCXX/debug-info-ctor2.cpp
  test/CodeGenCXX/debug-info-member.cpp
  test/CodeGenCXX/debug-info-method-spec.cpp
  test/CodeGenObjC/debug-info-class-extension.m
  test/CodeGenObjC/debug-info-class-extension2.m
  test/CodeGenObjC/debug-info-property.m
  test/CodeGenObjC/debug-info-property2.m
  test/CodeGenObjC/debug-info-property4.m
  test/CodeGenObjC/debug-info-property5.m
  test/CodeGenObjC/debug-property-synth.m
  test/CodeGenObjC/property-dbg.m

Index: test/CodeGen/debug-dead-local-var.c
===================================================================
--- test/CodeGen/debug-dead-local-var.c
+++ test/CodeGen/debug-dead-local-var.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -mllvm -asm-verbose -S -O2 -g %s -o - | FileCheck %s
+// RUN: %clang_cc1 -mllvm -asm-verbose -triple %itanium_abi_triple -S -O2 -g %s -o - | FileCheck %s
 // Radar 8122864
 
 // Code is not generated for function foo, but preserve type information of
Index: test/CodeGen/debug-info-var-location.c
===================================================================
--- test/CodeGen/debug-info-var-location.c
+++ test/CodeGen/debug-info-var-location.c
@@ -1,4 +1,5 @@
-// RUN: %clang -S -g -fverbose-asm %s -o - | FileCheck %s
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang -Xclang -triple=%itanium_abi_triple -S -g -fverbose-asm %s -o - | FileCheck %s
 // Radar 8461032
 // CHECK: DW_AT_location
 // CHECK-NEXT: byte 145
Index: test/CodeGenCXX/debug-info-byval.cpp
===================================================================
--- test/CodeGenCXX/debug-info-byval.cpp
+++ test/CodeGenCXX/debug-info-byval.cpp
@@ -1,4 +1,5 @@
-// RUN: %clang -g -S %s -o - | FileCheck %s
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang -Xclang -triple=%itanium_abi_triple -g -S %s -o - | FileCheck %s
 // Test to check presence of debug info for byval parameter.
 // Radar 8350436.
 class DAG {
Index: test/CodeGenCXX/debug-info-ctor2.cpp
===================================================================
--- test/CodeGenCXX/debug-info-ctor2.cpp
+++ test/CodeGenCXX/debug-info-ctor2.cpp
@@ -1,4 +1,5 @@
-// RUN: %clang -fverbose-asm -g -S %s -o - | grep AT_explicit
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang -Xclang -triple=%itanium_abi_triple -fverbose-asm -g -S %s -o - | grep AT_explicit
 
 
 class MyClass
Index: test/CodeGenCXX/debug-info-member.cpp
===================================================================
--- test/CodeGenCXX/debug-info-member.cpp
+++ test/CodeGenCXX/debug-info-member.cpp
@@ -1,4 +1,5 @@
-// RUN: %clang -fverbose-asm -g -S %s -o - | grep DW_ACCESS_public
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang -Xclang -triple=%itanium_abi_triple -fverbose-asm -g -S %s -o - | grep DW_ACCESS_public
 class A {
 public:
   int x;
Index: test/CodeGenCXX/debug-info-method-spec.cpp
===================================================================
--- test/CodeGenCXX/debug-info-method-spec.cpp
+++ test/CodeGenCXX/debug-info-method-spec.cpp
@@ -1,4 +1,5 @@
-// RUN: %clang -fverbose-asm -g -S %s -o - | grep DW_AT_specification
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang -Xclang -triple=%itanium_abi_triple -fverbose-asm -g -S %s -o - | grep DW_AT_specification
 // Radar 9254491
 class A {
 public:
Index: test/CodeGenObjC/debug-info-class-extension.m
===================================================================
--- test/CodeGenObjC/debug-info-class-extension.m
+++ test/CodeGenObjC/debug-info-class-extension.m
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -masm-verbose -S -g %s -o - | FileCheck %s
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -g %s -o - | FileCheck %s
 
 // CHECK: AT_APPLE_objc_complete_type
 
Index: test/CodeGenObjC/debug-info-class-extension2.m
===================================================================
--- test/CodeGenObjC/debug-info-class-extension2.m
+++ test/CodeGenObjC/debug-info-class-extension2.m
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1  -masm-verbose -S -g %s -o - | FileCheck %s
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -g %s -o - | FileCheck %s
 // CHECK: AT_APPLE_objc_complete_type
 
 @interface Foo {} @end
Index: test/CodeGenObjC/debug-info-property.m
===================================================================
--- test/CodeGenObjC/debug-info-property.m
+++ test/CodeGenObjC/debug-info-property.m
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -masm-verbose -S -g %s -o - | FileCheck %s
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -g %s -o - | FileCheck %s
 
 // CHECK: AT_APPLE_property_name
 // CHECK: AT_APPLE_property_attribute
Index: test/CodeGenObjC/debug-info-property2.m
===================================================================
--- test/CodeGenObjC/debug-info-property2.m
+++ test/CodeGenObjC/debug-info-property2.m
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -masm-verbose -S -g %s -o - | FileCheck %s
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -g %s -o - | FileCheck %s
 
 // CHECK: AT_APPLE_property_name
 @interface C {
Index: test/CodeGenObjC/debug-info-property4.m
===================================================================
--- test/CodeGenObjC/debug-info-property4.m
+++ test/CodeGenObjC/debug-info-property4.m
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -masm-verbose -S -g %s -o - | FileCheck %s
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -g %s -o - | FileCheck %s
 
 // CHECK: AT_APPLE_property_name
 // CHECK-NOT: AT_APPLE_property_getter
Index: test/CodeGenObjC/debug-info-property5.m
===================================================================
--- test/CodeGenObjC/debug-info-property5.m
+++ test/CodeGenObjC/debug-info-property5.m
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -masm-verbose -S -g %s -o - | FileCheck %s
+// FIXME: Check IR rather than asm, then triple is not needed.
+// RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -g %s -o - | FileCheck %s
 
 // CHECK: AT_APPLE_property_name
 // CHECK: AT_APPLE_property_getter
Index: test/CodeGenObjC/debug-property-synth.m
===================================================================
--- test/CodeGenObjC/debug-property-synth.m
+++ test/CodeGenObjC/debug-property-synth.m
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -masm-verbose -S -g %s -o - | FileCheck %s
+// RUN: %clang_cc1 -triple %itanium_abi_triple -masm-verbose -S -g %s -o - | FileCheck %s
 // Radar 9468526
 @interface I {
   int _p1;
Index: test/CodeGenObjC/property-dbg.m
===================================================================
--- test/CodeGenObjC/property-dbg.m
+++ test/CodeGenObjC/property-dbg.m
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -S -g -masm-verbose -x objective-c < %s | grep DW_AT_name
+// RUN: %clang_cc1 -triple %itanium_abi_triple -S -g -masm-verbose -x objective-c < %s | grep DW_AT_name
 @interface Foo {
   int i;
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2652.2.patch
Type: text/x-patch
Size: 6788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140129/6b63f53d/attachment.bin>


More information about the llvm-commits mailing list