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 | affce4fd93e9f8ee863f10bdef8a107591341e5d (patch) | |
tree | 3da2019733e039ee0685a33eca54c5f43d6a90b4 /runtime/libprofile/CommonProfiling.c | |
parent | c6f7591f5afcd6a35207dad8665365f3367eb7cb (diff) | |
download | llvm-affce4fd93e9f8ee863f10bdef8a107591341e5d.tar.gz |
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/CommonProfiling.c')
-rw-r--r-- | runtime/libprofile/CommonProfiling.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/libprofile/CommonProfiling.c b/runtime/libprofile/CommonProfiling.c index b88ea9cf8b0e..5569a66414f4 100644 --- a/runtime/libprofile/CommonProfiling.c +++ b/runtime/libprofile/CommonProfiling.c @@ -27,9 +27,9 @@ static unsigned SavedArgsLength = 0; /* save_arguments - Save argc and argv as passed into the program for the file * we output. */ -void save_arguments(int argc, const char **argv) { +int save_arguments(int argc, const char **argv) { unsigned Length, i; - if (SavedArgs || !argv) return; /* This can be called multiple times */ + if (SavedArgs || !argv) return argc; /* This can be called multiple times */ for (Length = 0, i = 0; i != (unsigned)argc; ++i) Length += strlen(argv[i])+1; @@ -43,6 +43,8 @@ void save_arguments(int argc, const char **argv) { } SavedArgsLength = Length; + + return argc; } |