[llvm-commits] [llvm] r153564 - /llvm/trunk/runtime/libprofile/GCDAProfiling.c

Bill Wendling isanbard at gmail.com
Tue Mar 27 19:39:06 PDT 2012


Author: void
Date: Tue Mar 27 21:39:06 2012
New Revision: 153564

URL: http://llvm.org/viewvc/llvm-project?rev=153564&view=rev
Log:
Use the correct filename for the error message.

Modified:
    llvm/trunk/runtime/libprofile/GCDAProfiling.c

Modified: llvm/trunk/runtime/libprofile/GCDAProfiling.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/libprofile/GCDAProfiling.c?rev=153564&r1=153563&r2=153564&view=diff
==============================================================================
--- llvm/trunk/runtime/libprofile/GCDAProfiling.c (original)
+++ llvm/trunk/runtime/libprofile/GCDAProfiling.c Tue Mar 27 21:39:06 2012
@@ -119,7 +119,7 @@
 
     if (!output_file) {
       fprintf(stderr, "LLVM profiling runtime: while opening '%s': ",
-              filename);
+              cptr ? cptr + 1 : orig_filename);
       perror("");
       exit(1);
     }





More information about the llvm-commits mailing list