[PATCH] D20572: [profile] clean up file handling code
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Tue May 24 12:50:01 PDT 2016
vsk accepted this revision.
This revision is now accepted and ready to land.
================
Comment at: lib/profile/InstrProfilingFile.c:112-118
@@ -102,3 +111,9 @@
-static void setFilename(const char *Filename, int OwnsFilename) {
+/* Set the result of the file name parsing. If \p FilenamePat pattern is seen
+ * the first time, also truncate the file associated with that name.
+ */
+static void setFilename(const char *FilenamePat, const char *PidStr,
+ unsigned NumPids, const char *HostStr,
+ unsigned NumHosts) {
/* Check if this is a new filename and therefore needs truncation. */
+ int NewFile =
----------------
Got it, silly mistake on my part.
http://reviews.llvm.org/D20572
More information about the llvm-commits
mailing list