aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-08-20 11:36:32 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-08-20 14:07:05 -0700
commit921c1b7df37d6f5353ed5fdffa117dcda0c941ba (patch)
tree66fbcd00b91155b27cf1cb53df00f111227ab6df /lldb/source/Interpreter/CommandInterpreter.cpp
parent74ca5275e9509e5ec4e9f1d9123bc10674734b20 (diff)
downloadllvm-921c1b7df37d6f5353ed5fdffa117dcda0c941ba.zip
llvm-921c1b7df37d6f5353ed5fdffa117dcda0c941ba.tar.gz
llvm-921c1b7df37d6f5353ed5fdffa117dcda0c941ba.tar.bz2
[lldb] Provide GetHomeDirectory wrapper in Host::FileSystem (NFC)
Provider a wrapper around llvm::sys::path::home_directory in the FileSystem class. This will make it possible for the reproducers to intercept the call in a central place.
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 6a355cb..b3b0277 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -2084,7 +2084,7 @@ static void GetHomeInitFile(llvm::SmallVectorImpl<char> &init_file,
init_file_name.append(suffix.str());
}
- llvm::sys::path::home_directory(init_file);
+ FileSystem::Instance().GetHomeDirectory(init_file);
llvm::sys::path::append(init_file, init_file_name);
FileSystem::Instance().Resolve(init_file);
@@ -2100,7 +2100,7 @@ static void GetHomeREPLInitFile(llvm::SmallVectorImpl<char> &init_file,
return;
}
- llvm::sys::path::home_directory(init_file);
+ FileSystem::Instance().GetHomeDirectory(init_file);
llvm::sys::path::append(init_file, init_file_name);
FileSystem::Instance().Resolve(init_file);