diff options
Diffstat (limited to 'runtime/libprofile/FunctionProfiling.c')
-rw-r--r-- | runtime/libprofile/FunctionProfiling.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/libprofile/FunctionProfiling.c b/runtime/libprofile/FunctionProfiling.c index 8bee2f9ba6..5f9c4f2e38 100644 --- a/runtime/libprofile/FunctionProfiling.c +++ b/runtime/libprofile/FunctionProfiling.c @@ -32,10 +32,11 @@ static void FuncProfAtExitHandler() { /* llvm_start_func_profiling - This is the main entry point of the function * profiling library. It is responsible for setting up the atexit handler. */ -void llvm_start_func_profiling(int argc, const char **argv, - unsigned *arrayStart, unsigned numElements) { - save_arguments(argc, argv); +int llvm_start_func_profiling(int argc, const char **argv, + unsigned *arrayStart, unsigned numElements) { + int Ret = save_arguments(argc, argv); ArrayStart = arrayStart; NumElements = numElements; atexit(FuncProfAtExitHandler); + return Ret; } |