aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llc
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
commit953e0d7076cd09a7bebd15d5f738028b45b4b063 (patch)
tree85f69ce200926317dfe7a4e930ba72cdb5a87483 /tools/llc
parent29f921ca75d44fc36c10f0e2597470b4b3ada6e0 (diff)
downloadexternal_llvm-953e0d7076cd09a7bebd15d5f738028b45b4b063.zip
external_llvm-953e0d7076cd09a7bebd15d5f738028b45b4b063.tar.gz
external_llvm-953e0d7076cd09a7bebd15d5f738028b45b4b063.tar.bz2
Convert from using C style char*'s to strings.
Look ma, no strdups git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/LLCOptions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llc/LLCOptions.cpp b/tools/llc/LLCOptions.cpp
index b3d2688..6ba1427 100644
--- a/tools/llc/LLCOptions.cpp
+++ b/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;
}