diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-07-22 03:57:31 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-07-22 03:57:31 +0000 | 
| commit | 5f4b44652f628b56e920ff275ced897ddd80fb58 (patch) | |
| tree | cdef3ef9777e328696d52ef7d12a1686b8c61811 /llvm/tools/llc/LLCOptions.cpp | |
| parent | 6f555812549d7076154f781ed00cb7d1fdd0a30e (diff) | |
| download | bcm5719-llvm-5f4b44652f628b56e920ff275ced897ddd80fb58.tar.gz bcm5719-llvm-5f4b44652f628b56e920ff275ced897ddd80fb58.zip | |
Convert from using C style char*'s to strings.
Look ma, no strdups
llvm-svn: 265
Diffstat (limited to 'llvm/tools/llc/LLCOptions.cpp')
| -rw-r--r-- | llvm/tools/llc/LLCOptions.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/tools/llc/LLCOptions.cpp b/llvm/tools/llc/LLCOptions.cpp index b3d26885ebc..6ba14277202 100644 --- a/llvm/tools/llc/LLCOptions.cpp +++ b/llvm/tools/llc/LLCOptions.cpp @@ -83,8 +83,8 @@ LLCOptions::ParseExtraArgs()    // output file name may be specified with -o option;    // otherwise create it from the input file name by replace ".ll" with ".o" -  const char* outfilenameOpt = this->StringOptionValue(OUTFILENAME_OPT); -  if (outfilenameOpt) +  const string &outfilenameOpt = StringOptionValue(OUTFILENAME_OPT); +  if (outfilenameOpt.length())      {// "-o" option was used        outputFileName = outfilenameOpt;       } | 

