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 | 497216dc000d23a1311677bb1847b9d5c19c57f8 (patch) | |
| tree | bed16e0309bc0e38c36dd6910de9de6a7d7e0697 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
| parent | c98ef9aeb74626bb8f880e83ff57b32b7237d775 (diff) | |
| download | llvm-497216dc000d23a1311677bb1847b9d5c19c57f8.zip llvm-497216dc000d23a1311677bb1847b9d5c19c57f8.tar.gz llvm-497216dc000d23a1311677bb1847b9d5c19c57f8.tar.bz2 | |
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().
llvm-svn: 7905
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions
