summaryrefslogtreecommitdiff
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-26 05:01:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-26 05:01:35 +0000
commit50188c1f42c122640ab9ccac2134acf371c26b2c (patch)
tree05539e5a83063a0eeda3c9211dfb8153cc750f0c /tools/bugpoint
parent2c63b27e9f36dddc2660639026b19e606ad52cd0 (diff)
downloadllvm-50188c1f42c122640ab9ccac2134acf371c26b2c.tar.gz
llvm-50188c1f42c122640ab9ccac2134acf371c26b2c.tar.bz2
llvm-50188c1f42c122640ab9ccac2134acf371c26b2c.tar.xz
Port GetMainExecutable over to PathV2.
I will remove the V1 version as soon as I change clang in the next commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/ToolRunner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp
index 4e6f6e27cc..9cc5f9a7e6 100644
--- a/tools/bugpoint/ToolRunner.cpp
+++ b/tools/bugpoint/ToolRunner.cpp
@@ -252,8 +252,8 @@ static std::string PrependMainExecutablePath(const std::string &ExeName,
// Check the directory that the calling program is in. We can do
// this if ProgramPath contains at least one / character, indicating that it
// is a relative path to the executable itself.
- sys::Path Main = sys::Path::GetMainExecutable(Argv0, MainAddr);
- StringRef Result = sys::path::parent_path(Main.str());
+ std::string Main = sys::fs::getMainExecutable(Argv0, MainAddr);
+ StringRef Result = sys::path::parent_path(Main);
if (!Result.empty()) {
SmallString<128> Storage = Result;