[PATCH] D91850: [compiler-rt] [profile] Silence a warning about an unused function on mingw targets
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 21 12:15:33 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG33fb9679ec6e: [compiler-rt] [profile] Silence a warning about an unused function on mingw… (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91850/new/
https://reviews.llvm.org/D91850
Files:
compiler-rt/lib/profile/InstrProfilingFile.c
Index: compiler-rt/lib/profile/InstrProfilingFile.c
===================================================================
--- compiler-rt/lib/profile/InstrProfilingFile.c
+++ compiler-rt/lib/profile/InstrProfilingFile.c
@@ -420,14 +420,12 @@
fclose(File);
}
-#ifndef _MSC_VER
+#if !defined(__Fuchsia__) && !defined(_WIN32)
static void assertIsZero(int *i) {
if (*i)
PROF_WARN("Expected flag to be 0, but got: %d\n", *i);
}
-#endif
-#if !defined(__Fuchsia__) && !defined(_WIN32)
/* Write a partial profile to \p Filename, which is required to be backed by
* the open file object \p File. */
static int writeProfileWithFileObject(const char *Filename, FILE *File) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91850.306869.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201121/8fc547e4/attachment.bin>
More information about the llvm-commits
mailing list