summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llc/LLCOptions.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-22 03:57:31 +0000
committerChris Lattner <sabre@nondot.org>2001-07-22 03:57:31 +0000
commit5f4b44652f628b56e920ff275ced897ddd80fb58 (patch)
treecdef3ef9777e328696d52ef7d12a1686b8c61811 /llvm/tools/llc/LLCOptions.cpp
parent6f555812549d7076154f781ed00cb7d1fdd0a30e (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud