summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/2009-10-20-GlobalDebug.c
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-09-13 01:13:19 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-09-13 01:13:19 +0000
commiteeb56abe643929f570006917c088e53bc7c896a4 (patch)
tree8ab0ef53b7f276c157d86f71eb1200e944be668b /clang/test/CodeGen/2009-10-20-GlobalDebug.c
parentd4135bbc30de3d3dbd44d64d718fb2169f41bae0 (diff)
downloadbcm5719-llvm-eeb56abe643929f570006917c088e53bc7c896a4.tar.gz
bcm5719-llvm-eeb56abe643929f570006917c088e53bc7c896a4.zip
Update Clang for D20147 ("DebugInfo: New metadata representation for global variables.")
Differential Revision: http://reviews.llvm.org/D20415 llvm-svn: 281285
Diffstat (limited to 'clang/test/CodeGen/2009-10-20-GlobalDebug.c')
-rw-r--r--clang/test/CodeGen/2009-10-20-GlobalDebug.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/clang/test/CodeGen/2009-10-20-GlobalDebug.c b/clang/test/CodeGen/2009-10-20-GlobalDebug.c
index 080f02ea7ed..38f20cdb6b0 100644
--- a/clang/test/CodeGen/2009-10-20-GlobalDebug.c
+++ b/clang/test/CodeGen/2009-10-20-GlobalDebug.c
@@ -1,16 +1,18 @@
// REQUIRES: x86-registered-target
// RUN: %clang -target i386-apple-darwin10 -flto -S -g %s -o - | FileCheck %s
+
+// CHECK: @main.localstatic = internal global i32 0, align 4, !dbg [[L:![0-9]+]]
+// CHECK: @global = common global i32 0, align 4, !dbg [[G:![0-9]+]]
+
int global;
int main() {
static int localstatic;
return 0;
}
-// CHECK: !DIGlobalVariable(name: "localstatic"
+// CHECK: [[L]] = distinct !DIGlobalVariable(name: "localstatic"
// CHECK-NOT: linkageName:
-// CHECK-SAME: line: 5,
-// CHECK-SAME: variable: i32* @main.localstatic
-// CHECK: !DIGlobalVariable(name: "global"
+// CHECK-SAME: line: 9,
+// CHECK: [[G]] = distinct !DIGlobalVariable(name: "global"
// CHECK-NOT: linkageName:
-// CHECK-SAME: line: 3,
-// CHECK-SAME: variable: i32* @global
+// CHECK-SAME: line: 7,
OpenPOWER on IntegriCloud