r221249 - Driver: Pass some std::strings by reference instead of value
David Majnemer
david.majnemer at gmail.com
Tue Nov 4 00:55:13 PST 2014
Author: majnemer
Date: Tue Nov 4 02:55:13 2014
New Revision: 221249
URL: http://llvm.org/viewvc/llvm-project?rev=221249&view=rev
Log:
Driver: Pass some std::strings by reference instead of value
No functional change intended. This fixes PR21463.
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=221249&r1=221248&r2=221249&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Tue Nov 4 02:55:13 2014
@@ -2088,8 +2088,8 @@ std::string Hexagon_TC::GetGnuDir(const
static void GetHexagonLibraryPaths(
const ArgList &Args,
- const std::string Ver,
- const std::string MarchString,
+ const std::string &Ver,
+ const std::string &MarchString,
const std::string &InstalledDir,
ToolChain::path_list *LibPaths)
{
More information about the cfe-commits
mailing list