diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-10 17:36:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-10 17:36:25 +0000 |
commit | b94ff3c67cd5b8345ac44767a83a80b139bebe65 (patch) | |
tree | a4afa0d7e0105e9cbebcd45e0ada8890087514f0 /llvm/runtime/libprofile/BlockProfiling.c | |
parent | 78292b3e66b7185b6a7f2131ae7b68a73c0a1c4f (diff) | |
download | bcm5719-llvm-b94ff3c67cd5b8345ac44767a83a80b139bebe65.tar.gz bcm5719-llvm-b94ff3c67cd5b8345ac44767a83a80b139bebe65.zip |
Make the initialization calls return argc.
llvm-svn: 11261
Diffstat (limited to 'llvm/runtime/libprofile/BlockProfiling.c')
-rw-r--r-- | llvm/runtime/libprofile/BlockProfiling.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/runtime/libprofile/BlockProfiling.c b/llvm/runtime/libprofile/BlockProfiling.c index 01b80a88e01..8170ce4cb43 100644 --- a/llvm/runtime/libprofile/BlockProfiling.c +++ b/llvm/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; } |