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/CommonProfiling.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/CommonProfiling.c')
-rw-r--r-- | llvm/runtime/libprofile/CommonProfiling.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/runtime/libprofile/CommonProfiling.c b/llvm/runtime/libprofile/CommonProfiling.c index b88ea9cf8b0..5569a66414f 100644 --- a/llvm/runtime/libprofile/CommonProfiling.c +++ b/llvm/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; } |