diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-08-15 21:05:57 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-08-15 21:05:57 +0000 |
commit | c48ef2ae36e2169872a828a5399ccd1993837915 (patch) | |
tree | 8b17ad550400e860aa27c74763f1807896d80319 /lib/CodeGen/RegAllocLocal.cpp | |
parent | b60fe7791ef731a80d88d6ec1e327bd43896648d (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 'lib/CodeGen/RegAllocLocal.cpp')
0 files changed, 0 insertions, 0 deletions