[llvm-commits] [llvm] r132061 - in /llvm/trunk/runtime/libprofile: BasicBlockTracing.c EdgeProfiling.c OptimalEdgeProfiling.c
Francois Pichet
pichet2000 at gmail.com
Wed May 25 09:32:33 PDT 2011
Author: fpichet
Date: Wed May 25 11:32:33 2011
New Revision: 132061
URL: http://llvm.org/viewvc/llvm-project?rev=132061&view=rev
Log:
Fix 3 MSVC warnings:
'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
atexit really expects a "void f(void)" function.
Modified:
llvm/trunk/runtime/libprofile/BasicBlockTracing.c
llvm/trunk/runtime/libprofile/EdgeProfiling.c
llvm/trunk/runtime/libprofile/OptimalEdgeProfiling.c
Modified: llvm/trunk/runtime/libprofile/BasicBlockTracing.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/libprofile/BasicBlockTracing.c?rev=132061&r1=132060&r2=132061&view=diff
==============================================================================
--- llvm/trunk/runtime/libprofile/BasicBlockTracing.c (original)
+++ llvm/trunk/runtime/libprofile/BasicBlockTracing.c Wed May 25 11:32:33 2011
@@ -30,7 +30,7 @@
/* BBTraceAtExitHandler - When the program exits, just write out any remaining
* data and free the trace buffer.
*/
-static void BBTraceAtExitHandler() {
+static void BBTraceAtExitHandler(void) {
WriteAndFlushBBTraceData ();
free (ArrayStart);
}
Modified: llvm/trunk/runtime/libprofile/EdgeProfiling.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/libprofile/EdgeProfiling.c?rev=132061&r1=132060&r2=132061&view=diff
==============================================================================
--- llvm/trunk/runtime/libprofile/EdgeProfiling.c (original)
+++ llvm/trunk/runtime/libprofile/EdgeProfiling.c Wed May 25 11:32:33 2011
@@ -22,7 +22,7 @@
/* EdgeProfAtExitHandler - When the program exits, just write out the profiling
* data.
*/
-static void EdgeProfAtExitHandler() {
+static void EdgeProfAtExitHandler(void) {
/* Note that if this were doing something more intelligent with the
* instrumentation, we could do some computation here to expand what we
* collected into simple edge profiles. Since we directly count each edge, we
Modified: llvm/trunk/runtime/libprofile/OptimalEdgeProfiling.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/libprofile/OptimalEdgeProfiling.c?rev=132061&r1=132060&r2=132061&view=diff
==============================================================================
--- llvm/trunk/runtime/libprofile/OptimalEdgeProfiling.c (original)
+++ llvm/trunk/runtime/libprofile/OptimalEdgeProfiling.c Wed May 25 11:32:33 2011
@@ -22,7 +22,7 @@
/* OptEdgeProfAtExitHandler - When the program exits, just write out the
* profiling data.
*/
-static void OptEdgeProfAtExitHandler() {
+static void OptEdgeProfAtExitHandler(void) {
/* Note that, although the array has a counter for each edge, not all
* counters are updated, the ones that are not used are initialised with -1.
* When loading this information the counters with value -1 have to be
More information about the llvm-commits
mailing list