diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-02-03 21:35:49 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-02-03 21:35:49 +0000 |
commit | 4da909b2b2a1087e4827ded24fea212016a1a9a0 (patch) | |
tree | f2e786eb4688e15eb21fba16c38f4d40707fe64e /clang/test/CoverageMapping/test.c | |
parent | de15817ea20f021f23b47fe0c42317b98302eecc (diff) | |
download | bcm5719-llvm-4da909b2b2a1087e4827ded24fea212016a1a9a0.tar.gz bcm5719-llvm-4da909b2b2a1087e4827ded24fea212016a1a9a0.zip |
InstrProf: Remove CoverageMapping::HasCodeBefore, it isn't used
llvm-svn: 228035
Diffstat (limited to 'clang/test/CoverageMapping/test.c')
-rw-r--r-- | clang/test/CoverageMapping/test.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/clang/test/CoverageMapping/test.c b/clang/test/CoverageMapping/test.c index 594bcf68bc0..0911cd857db 100644 --- a/clang/test/CoverageMapping/test.c +++ b/clang/test/CoverageMapping/test.c @@ -4,28 +4,28 @@ void bar(); static void static_func(); // CHECK: main -int main() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> [[@LINE+7]]:2 = #0 (HasCodeBefore = 0) - // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:24 = (#0 + #1) (HasCodeBefore = 0) - for(int i = 0; i < 10; ++i) { // CHECK-NEXT: File 0, [[@LINE]]:26 -> [[@LINE]]:29 = #1 (HasCodeBefore = 0) - bar(); // CHECK-NEXT: File 0, [[@LINE-1]]:31 -> [[@LINE+1]]:4 = #1 (HasCodeBefore = 0) +int main() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> [[@LINE+7]]:2 = #0 + // CHECK-NEXT: File 0, [[@LINE+1]]:18 -> [[@LINE+1]]:24 = (#0 + #1) + for(int i = 0; i < 10; ++i) { // CHECK-NEXT: File 0, [[@LINE]]:26 -> [[@LINE]]:29 = #1 + bar(); // CHECK-NEXT: File 0, [[@LINE-1]]:31 -> [[@LINE+1]]:4 = #1 } static_func(); return 0; } // CHECK-NEXT: foo -void foo() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> [[@LINE+4]]:2 = #0 (HasCodeBefore = 0) - if(1) { // CHECK-NEXT: File 0, [[@LINE]]:9 -> [[@LINE+2]]:4 = #1 (HasCodeBefore = 0) +void foo() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> [[@LINE+4]]:2 = #0 + if(1) { // CHECK-NEXT: File 0, [[@LINE]]:9 -> [[@LINE+2]]:4 = #1 int i = 0; } } // CHECK-NEXT: bar -void bar() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> [[@LINE+1]]:2 = #0 (HasCodeBefore = 0) +void bar() { // CHECK-NEXT: File 0, [[@LINE]]:12 -> [[@LINE+1]]:2 = #0 } // CHECK-NEXT: static_func -void static_func() { } // CHECK: File 0, [[@LINE]]:20 -> [[@LINE]]:23 = #0 (HasCodeBefore = 0) +void static_func() { } // CHECK: File 0, [[@LINE]]:20 -> [[@LINE]]:23 = #0 // CHECK-NEXT: func -static void func() { } // CHECK: File 0, [[@LINE]]:20 -> [[@LINE]]:23 = 0 (HasCodeBefore = 0) +static void func() { } // CHECK: File 0, [[@LINE]]:20 -> [[@LINE]]:23 = 0 |