aboutsummaryrefslogtreecommitdiff
path: root/runtime/libprofile/BlockProfiling.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-10 17:36:25 +0000
committerChris Lattner <sabre@nondot.org>2004-02-10 17:36:25 +0000
commitaffce4fd93e9f8ee863f10bdef8a107591341e5d (patch)
tree3da2019733e039ee0685a33eca54c5f43d6a90b4 /runtime/libprofile/BlockProfiling.c
parentc6f7591f5afcd6a35207dad8665365f3367eb7cb (diff)
Make the initialization calls return argc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/libprofile/BlockProfiling.c')
-rw-r--r--runtime/libprofile/BlockProfiling.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/libprofile/BlockProfiling.c b/runtime/libprofile/BlockProfiling.c
index 01b80a88e0..8170ce4cb4 100644
--- a/runtime/libprofile/BlockProfiling.c
+++ b/runtime/libprofile/BlockProfiling.c
@@ -34,10 +34,11 @@ static void BlockProfAtExitHandler() {
/* llvm_start_block_profiling - This is the main entry point of the block
* profiling library. It is responsible for setting up the atexit handler.
*/
-void llvm_start_block_profiling(int argc, const char **argv,
- unsigned *arrayStart, unsigned numElements) {
- save_arguments(argc, argv);
+int llvm_start_block_profiling(int argc, const char **argv,
+ unsigned *arrayStart, unsigned numElements) {
+ int Ret = save_arguments(argc, argv);
ArrayStart = arrayStart;
NumElements = numElements;
atexit(BlockProfAtExitHandler);
+ return Ret;
}