summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/libprofile/GCDAProfiling.c
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-03-28 02:39:06 +0000
committerBill Wendling <isanbard@gmail.com>2012-03-28 02:39:06 +0000
commitf4670fb97c8dc5819263ec427a230bee7b3b256b (patch)
tree670f38c2a52a7e34eada0442a8fe0cd87373c9a3 /llvm/runtime/libprofile/GCDAProfiling.c
parent2f22999bab95cbf3f64cfe0957cd3a5a632e016f (diff)
downloadbcm5719-llvm-f4670fb97c8dc5819263ec427a230bee7b3b256b.tar.gz
bcm5719-llvm-f4670fb97c8dc5819263ec427a230bee7b3b256b.zip
Use the correct filename for the error message.
llvm-svn: 153564
Diffstat (limited to 'llvm/runtime/libprofile/GCDAProfiling.c')
-rw-r--r--llvm/runtime/libprofile/GCDAProfiling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/runtime/libprofile/GCDAProfiling.c b/llvm/runtime/libprofile/GCDAProfiling.c
index ea2a56a8b05..3a48bb28265 100644
--- a/llvm/runtime/libprofile/GCDAProfiling.c
+++ b/llvm/runtime/libprofile/GCDAProfiling.c
@@ -119,7 +119,7 @@ void llvm_gcda_start_file(const char *orig_filename) {
if (!output_file) {
fprintf(stderr, "LLVM profiling runtime: while opening '%s': ",
- filename);
+ cptr ? cptr + 1 : orig_filename);
perror("");
exit(1);
}
OpenPOWER on IntegriCloud