summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MICmdCmdFile.cpp
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>2015-03-31 16:30:29 +0000
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>2015-03-31 16:30:29 +0000
commit0e1f11ffe0afd0604bbee218ce74b915c732b678 (patch)
treec3c7b508ac4c03ec92f0caa63adb817a119e1a82 /lldb/tools/lldb-mi/MICmdCmdFile.cpp
parent0b024619dfe4da40b6c8a7ef46bdc1815d11f7a7 (diff)
downloadbcm5719-llvm-0e1f11ffe0afd0604bbee218ce74b915c732b678.tar.gz
bcm5719-llvm-0e1f11ffe0afd0604bbee218ce74b915c732b678.zip
Changed a function to static.
A temp object was being created to call StripOffFileName. This function is not dependent on class members so I am making it static. No regression on testsuite on Linux. llvm-svn: 233703
Diffstat (limited to 'lldb/tools/lldb-mi/MICmdCmdFile.cpp')
-rw-r--r--lldb/tools/lldb-mi/MICmdCmdFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/lldb-mi/MICmdCmdFile.cpp b/lldb/tools/lldb-mi/MICmdCmdFile.cpp
index 44438c32a7a..367d9789913 100644
--- a/lldb/tools/lldb-mi/MICmdCmdFile.cpp
+++ b/lldb/tools/lldb-mi/MICmdCmdFile.cpp
@@ -114,7 +114,7 @@ CMICmdCmdFileExecAndSymbols::Execute(void)
const CMIUtilString &rStrKeyWkDir(rSessionInfo.m_constStrSharedDataKeyWkDir);
if (!rSessionInfo.SharedDataRetrieve<CMIUtilString>(rStrKeyWkDir, strWkDir))
{
- strWkDir = CMIUtilFileStd().StripOffFileName(strExeFilePath);
+ strWkDir = CMIUtilFileStd::StripOffFileName(strExeFilePath);
if (!rSessionInfo.SharedDataAdd<CMIUtilString>(rStrKeyWkDir, strWkDir))
{
SetError(CMIUtilString::Format(MIRSRC(IDS_DBGSESSION_ERR_SHARED_DATA_ADD), m_cmdData.strMiCmd.c_str(), rStrKeyWkDir.c_str()));
OpenPOWER on IntegriCloud