diff options
| author | Yaron Keren <yaron.keren@gmail.com> | 2015-03-30 15:42:36 +0000 |
|---|---|---|
| committer | Yaron Keren <yaron.keren@gmail.com> | 2015-03-30 15:42:36 +0000 |
| commit | 075759aaddb1daf9aa801fc75a0909c510081f6d (patch) | |
| tree | 88e604bd3bfca09b26acf2438fff4a82a41b4de6 /llvm/lib/Option | |
| parent | bbe1756a8c55bb0195bcbe257cfff4b73d94c8ac (diff) | |
| download | bcm5719-llvm-075759aaddb1daf9aa801fc75a0909c510081f6d.tar.gz bcm5719-llvm-075759aaddb1daf9aa801fc75a0909c510081f6d.zip | |
Remove more superfluous .str() and replace std::string concatenation with Twine.
Following r233392, http://llvm.org/viewvc/llvm-project?rev=233392&view=rev.
llvm-svn: 233555
Diffstat (limited to 'llvm/lib/Option')
| -rw-r--r-- | llvm/lib/Option/ArgList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Option/ArgList.cpp b/llvm/lib/Option/ArgList.cpp index 4bc8f925e1b..b771a18a106 100644 --- a/llvm/lib/Option/ArgList.cpp +++ b/llvm/lib/Option/ArgList.cpp @@ -395,7 +395,7 @@ Arg *DerivedArgList::MakeSeparateArg(const Arg *BaseArg, const Option Opt, Arg *DerivedArgList::MakeJoinedArg(const Arg *BaseArg, const Option Opt, StringRef Value) const { - unsigned Index = BaseArgs.MakeIndex(Opt.getName().str() + Value.str()); + unsigned Index = BaseArgs.MakeIndex((Opt.getName() + Value).str()); SynthesizedArgs.push_back(make_unique<Arg>( Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), Index, BaseArgs.getArgString(Index) + Opt.getName().size(), BaseArg)); |

