lib/Support/CommandLine.cpp:
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 15 Aug 2003 21:05:57 +0000 (21:05 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 15 Aug 2003 21:05:57 +0000 (21:05 +0000)
commitc48ef2ae36e2169872a828a5399ccd1993837915
tree8b17ad550400e860aa27c74763f1807896d80319
parentb60fe7791ef731a80d88d6ec1e327bd43896648d
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
include/Support/CommandLine.h
include/llvm/Support/CommandLine.h
lib/Support/CommandLine.cpp
support/lib/Support/CommandLine.cpp