From ebf75d75e2e78cd50b1e8f29f297a47246a525c0 Mon Sep 17 00:00:00 2001
From: David Blaikie <dblaikie@gmail.com>
Date: Fri, 28 Dec 2012 01:16:31 +0000
Subject: [PATCH] Change this to an IR test instead of an assembly test (as per
 comment in r171134).

This makes the test not dependent on LLVM & won't vary/break based on LLVM
codegen related changes. Appropriately testing at the Clang level what was
fixed at the Clang level originally (in r124210).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171175 91177308-0d34-0410-b5e6-96231b3b80d8
---
 test/CodeGenObjC/debug-info-static-var.m | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/test/CodeGenObjC/debug-info-static-var.m b/test/CodeGenObjC/debug-info-static-var.m
index c25410747f7..2c10d597797 100644
--- a/test/CodeGenObjC/debug-info-static-var.m
+++ b/test/CodeGenObjC/debug-info-static-var.m
@@ -1,14 +1,8 @@
-// REQUIRES: x86-64-registered-target
-// RUN: %clang_cc1 -g -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -S -masm-verbose -o - %s | FileCheck %s
+// RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s
 // Radar 8801045
 // Do not emit AT_MIPS_linkage_name for static variable i
 
-// CHECK: Lset6 = Linfo_string3-Linfo_string           ## DW_AT_name
-// CHECK-NEXT: .long   Lset6
-// CHECK-NEXT:        DW_AT_type
-// CHECK-NEXT:        DW_AT_decl_file
-// CHECK-NEXT:        DW_AT_decl_line
-// CHECK-NEXT:        DW_AT_location
+// CHECK: metadata !"i", metadata !"i", metadata !""
 
 @interface A {
 }
-- 
GitLab