[compiler-rt] r204676 - InstrProf: Change the extension of the default profile

Duncan P. N. Exon Smith dexonsmith at apple.com
Mon Mar 24 14:53:42 PDT 2014


Author: dexonsmith
Date: Mon Mar 24 16:53:42 2014
New Revision: 204676

URL: http://llvm.org/viewvc/llvm-project?rev=204676&view=rev
Log:
InstrProf: Change the extension of the default profile

Change the name of the default profile dumped by compiler-rt to
default.profraw.  This distinguishes it more clearly from the
(incompatible) format output by llvm-profdata that is read by clang
-fprofile-instr-use.

Modified:
    compiler-rt/trunk/lib/profile/InstrProfilingFile.c

Modified: compiler-rt/trunk/lib/profile/InstrProfilingFile.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingFile.c?rev=204676&r1=204675&r2=204676&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingFile.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingFile.c Mon Mar 24 16:53:42 2014
@@ -85,7 +85,7 @@ int __llvm_profile_write_file(void) {
 #define UPDATE_FILENAME(NextFilename) \
   if (!Filename || !Filename[0]) Filename = NextFilename
   UPDATE_FILENAME(getenv("LLVM_PROFILE_FILE"));
-  UPDATE_FILENAME("default.profdata");
+  UPDATE_FILENAME("default.profraw");
 #undef UPDATE_FILENAME
 
   /* Check the filename for "%p", which indicates a pid-substitution. */





More information about the llvm-commits mailing list