diff options
| author | Xinliang David Li <davidxl@google.com> | 2015-12-11 19:53:35 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2015-12-11 19:53:35 +0000 |
| commit | 871daea55000b52a73ee8a4ceefc357d5e37cf79 (patch) | |
| tree | 2315bacc711347aaaed892bec7671fe8e52c845b /clang/test/Profile/c-captured.c | |
| parent | c79283ef2912095de447295c0b49916cf2504ad0 (diff) | |
| download | bcm5719-llvm-871daea55000b52a73ee8a4ceefc357d5e37cf79.tar.gz bcm5719-llvm-871daea55000b52a73ee8a4ceefc357d5e37cf79.zip | |
[PGO] Stop using invalid char in instr variable names.
(This is part-2 of the patch -- fixing test cases)
Before the patch, -fprofile-instr-generate compile will fail
if no integrated-as is specified when the file contains
any static functions (the -S output is also invalid).
This patch fixed the issue. With the change, the index format
version will be bumped up by 1. Backward compatibility is
preserved with this change.
Differential Revision: http://reviews.llvm.org/D15243
llvm-svn: 255366
Diffstat (limited to 'clang/test/Profile/c-captured.c')
| -rw-r--r-- | clang/test/Profile/c-captured.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Profile/c-captured.c b/clang/test/Profile/c-captured.c index 84fa6d3eea7..27eec839b5b 100644 --- a/clang/test/Profile/c-captured.c +++ b/clang/test/Profile/c-captured.c @@ -4,8 +4,8 @@ // RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-captured.c %s -o - -emit-llvm -fprofile-instr-use=%t.profdata | FileCheck -check-prefix=PGOUSE -check-prefix=PGOALL %s // PGOGEN: @[[DCC:__llvm_profile_counters_debug_captured]] = private global [3 x i64] zeroinitializer -// PGOGEN: @[[CSC:"__llvm_profile_counters_c-captured.c:__captured_stmt"]] = private global [2 x i64] zeroinitializer -// PGOGEN: @[[C1C:"__llvm_profile_counters_c-captured.c:__captured_stmt.1"]] = private global [3 x i64] zeroinitializer +// PGOGEN: @[[CSC:__llvm_profile_counters_c-captured.c____captured_stmt]] = private global [2 x i64] zeroinitializer +// PGOGEN: @[[C1C:__llvm_profile_counters_c-captured.c____captured_stmt.1]] = private global [3 x i64] zeroinitializer // PGOALL-LABEL: define void @debug_captured() // PGOGEN: store {{.*}} @[[DCC]], i64 0, i64 0 |

