diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-06-18 16:20:17 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-06-18 16:20:17 +0000 |
commit | c470ac50a8a45aa62ba50d435ff3048c6c274273 (patch) | |
tree | 825acf2b7d5a2570aa2d5ea30029c1501f76adf7 /lldb/source/Host/common/FileSystem.cpp | |
parent | cfc70782d7e1b88eeee0c6269522ecf46572cd1e (diff) | |
download | llvm-c470ac50a8a45aa62ba50d435ff3048c6c274273.zip llvm-c470ac50a8a45aa62ba50d435ff3048c6c274273.tar.gz llvm-c470ac50a8a45aa62ba50d435ff3048c6c274273.tar.bz2 |
[Reproducers] Make reproducer relocatable
Before this patch, reproducers weren't relocatable. The reproducer
contained hard coded paths in the VFS mapping, as well in the yaml file
listing the different input files for the command interpreter. This
patch changes that:
- Use relative paths for the DataCollector.
- Use an overlay prefix for the FileCollector.
Differential revision: https://reviews.llvm.org/D63467
llvm-svn: 363697
Diffstat (limited to 'lldb/source/Host/common/FileSystem.cpp')
-rw-r--r-- | lldb/source/Host/common/FileSystem.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Host/common/FileSystem.cpp b/lldb/source/Host/common/FileSystem.cpp index ade7cc9..d5ac05b 100644 --- a/lldb/source/Host/common/FileSystem.cpp +++ b/lldb/source/Host/common/FileSystem.cpp @@ -63,8 +63,9 @@ llvm::Error FileSystem::Initialize(const FileSpec &mapping) { if (!buffer) return llvm::errorCodeToError(buffer.getError()); - InstanceImpl().emplace( - llvm::vfs::getVFSFromYAML(std::move(buffer.get()), nullptr, ""), true); + InstanceImpl().emplace(llvm::vfs::getVFSFromYAML(std::move(buffer.get()), + nullptr, mapping.GetPath()), + true); return llvm::Error::success(); } |