aboutsummaryrefslogtreecommitdiff
path: root/include/Support
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-08-15 21:05:57 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-08-15 21:05:57 +0000
commitc48ef2ae36e2169872a828a5399ccd1993837915 (patch)
tree8b17ad550400e860aa27c74763f1807896d80319 /include/Support
parentb60fe7791ef731a80d88d6ec1e327bd43896648d (diff)
lib/Support/CommandLine.cpp:
Many changes suggested by Chris. It's okay, I'll recover from the emotional damage...maybe someday. :-) Collapse ParseCStringVector into ParseStringVector. Comment it. Make it take a const input. Use std::string::npos instead of -1 (what a mouthful!) Make ParseEnvironmentOptions take const inputs. Check its args at the very beginning. Strdup all the contents of newArgv and free them all at the end. include/Support/CommandLine.h: Constify progName and envVar arguments to ParseEnvironmentOptions(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support')
-rw-r--r--include/Support/CommandLine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Support/CommandLine.h b/include/Support/CommandLine.h
index 5febbcf1c9..410361797a 100644
--- a/include/Support/CommandLine.h
+++ b/include/Support/CommandLine.h
@@ -35,7 +35,7 @@ void ParseCommandLineOptions(int &argc, char **argv,
// ParseEnvironmentOptions - Environment variable option processing alternate
// entry point.
//
-void ParseEnvironmentOptions(char *progName, char *envvar,
+void ParseEnvironmentOptions(const char *progName, const char *envvar,
const char *Overview = 0);
//===----------------------------------------------------------------------===//