From b3af390087ce6833b3917f7de79e592d5cfe7026 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 29 Jul 2014 06:53:14 +0000 Subject: [PATCH] Revert "Emit column debug information for loads" This broke the following gdb tests: gdb.base__annota1.exp gdb.base__consecutive.exp gdb.python__py-symtab.exp gdb.reverse__consecutive-precsave.exp gdb.reverse__consecutive-reverse.exp I will look into this. This reverts commit 214162. llvm-svn: 214163 --- clang/lib/CodeGen/CGExpr.cpp | 3 --- clang/test/CodeGen/debug-info-column.c | 13 ------------- clang/test/CodeGen/linetable-endscope.c | 2 +- clang/test/CodeGenCXX/PR20038.cpp | 2 +- clang/test/CodeGenObjC/arc-linetable.m | 6 +++--- 5 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 clang/test/CodeGen/debug-info-column.c diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index d3a01ab..512b323 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -1258,9 +1258,6 @@ void CodeGenFunction::EmitStoreOfScalar(llvm::Value *value, LValue lvalue, /// method emits the address of the lvalue, then loads the result as an rvalue, /// returning the rvalue. RValue CodeGenFunction::EmitLoadOfLValue(LValue LV, SourceLocation Loc) { - if (CGDebugInfo *DI = getDebugInfo()) - DI->EmitLocation(Builder, Loc, true); - if (LV.isObjCWeak()) { // load of a __weak object. llvm::Value *AddrWeakObj = LV.getAddress(); diff --git a/clang/test/CodeGen/debug-info-column.c b/clang/test/CodeGen/debug-info-column.c deleted file mode 100644 index 2a635ac..0000000 --- a/clang/test/CodeGen/debug-info-column.c +++ /dev/null @@ -1,13 +0,0 @@ -// RUN: %clang_cc1 -emit-llvm -o - -g %s | FileCheck %s -void foo(float A[100], float B[100]) { - B[12] = A[10] + A[20] + A[30]; -} -// CHECK-LABEL: foo -// CHECK: load float* %arrayidx{{.*}}, !dbg [[LOC0:.*]] -// CHECK: load float* %arrayidx{{.*}}, !dbg [[LOC1:.*]] -// CHECK: load float* %arrayidx{{.*}}, !dbg [[LOC2:.*]] -// CHECK: store float {{.*}} float* %arrayidx{{.*}}, !dbg [[LOC3:.*]] -// CHECK-DAG: [[LOC0]] = metadata !{i32 3, i32 11, metadata {{.*}}, null} -// CHECK-DAG: [[LOC1]] = metadata !{i32 3, i32 19, metadata {{.*}}, null} -// CHECK-DAG: [[LOC2]] = metadata !{i32 3, i32 27, metadata {{.*}}, null} -// CHECK-DAG: [[LOC3]] = metadata !{i32 3, i32 3, metadata {{.*}}, null} diff --git a/clang/test/CodeGen/linetable-endscope.c b/clang/test/CodeGen/linetable-endscope.c index b39df78..236f605 100644 --- a/clang/test/CodeGen/linetable-endscope.c +++ b/clang/test/CodeGen/linetable-endscope.c @@ -11,7 +11,7 @@ void foo(char c) { int i; - // CHECK: ![[CONV]] = metadata !{i32 [[@LINE+1]], i32 7, metadata !{{.*}}, null} + // CHECK: ![[CONV]] = metadata !{i32 [[@LINE+1]], i32 0, metadata !{{.*}}, null} i = c; // CHECK: ![[RET]] = metadata !{i32 [[@LINE+1]], i32 0, metadata !{{.*}}, null} } diff --git a/clang/test/CodeGenCXX/PR20038.cpp b/clang/test/CodeGenCXX/PR20038.cpp index f72219f..c24685d 100644 --- a/clang/test/CodeGenCXX/PR20038.cpp +++ b/clang/test/CodeGenCXX/PR20038.cpp @@ -11,6 +11,6 @@ extern bool b; // CHECK: [[DTOR_CALL1_LOC]] = metadata !{i32 [[@LINE+2]], i32 0, metadata [[FUN1_BLOCK:.*]], null} // CHECK: [[FUN1_BLOCK]] = metadata !{{{[^,]*}}, {{[^,]*}}, metadata [[FUN1]], void fun1() { b && (C(), 1); } -// CHECK: [[DTOR_CALL2_LOC]] = metadata !{i32 [[@LINE+2]], i32 28, metadata [[FUN2_BLOCK1:.*]], null} +// CHECK: [[DTOR_CALL2_LOC]] = metadata !{i32 [[@LINE+2]], i32 0, metadata [[FUN2_BLOCK1:.*]], null} // CHECK: [[FUN2_BLOCK1]] = metadata !{{{[^,]*}}, {{[^,]*}}, metadata [[FUN2]], bool fun2() { return (C(), b) && 0; } diff --git a/clang/test/CodeGenObjC/arc-linetable.m b/clang/test/CodeGenObjC/arc-linetable.m index 9d6c5b3..2d56ab3 100644 --- a/clang/test/CodeGenObjC/arc-linetable.m +++ b/clang/test/CodeGenObjC/arc-linetable.m @@ -76,7 +76,7 @@ typedef signed char BOOL; - (int)testMultiline:(NSString *)foo { // CHECK: ![[MSG4]] = metadata !{i32 [[@LINE+1]], i32 0, metadata !{{.*}}, null} int r = [self testSideEffect :foo]; - // CHECK: ![[EXP4]] = metadata !{i32 [[@LINE+1]], i32 10, metadata !{{.*}}, null} + // CHECK: ![[EXP4]] = metadata !{i32 [[@LINE+1]], i32 0, metadata !{{.*}}, null} return r; // CHECK: ![[RET4]] = metadata !{i32 [[@LINE+1]], i32 0, metadata !{{.*}}, null} } @@ -94,7 +94,7 @@ typedef signed char BOOL; } - (int)testNoCleanupSideEffect { - // CHECK: ![[MSG7]] = metadata !{i32 [[@LINE+1]], i32 4, metadata !{{.*}}, null} + // CHECK: ![[MSG7]] = metadata !{i32 [[@LINE+1]], i32 0, metadata !{{.*}}, null} [self testVoid :@"foo"]; // CHECK: ![[RET7]] = metadata !{i32 [[@LINE+1]], i32 0, metadata !{{.*}}, null} return 1; @@ -102,7 +102,7 @@ typedef signed char BOOL; - (void)testCleanupVoid:(BOOL)skip withDelegate: (AppDelegate *) delegate { static BOOL skip_all; - // CHECK: ![[SKIP1]] = metadata !{i32 [[@LINE+1]], i32 8, + // CHECK: ![[SKIP1]] = metadata !{i32 [[@LINE+1]], i32 0, if (!skip_all) { if (!skip) { return; -- 2.7.4