diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-02-18 20:31:18 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-02-18 20:31:18 +0000 |
| commit | 9764b65c8233c0385b7625e5176d6d7fd0de2b8c (patch) | |
| tree | 99dadf7009a352cf9cd49838c141b52023217dd4 /lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp | |
| parent | eb3bcc1c951039c7ab4656ef44e7e5deffe1ad92 (diff) | |
| download | bcm5719-llvm-9764b65c8233c0385b7625e5176d6d7fd0de2b8c.tar.gz bcm5719-llvm-9764b65c8233c0385b7625e5176d6d7fd0de2b8c.zip | |
[Reproducers] Make clang use lldb's VFS.
In r353906 we hooked up clang and lldb's reproducer infrastructure to
capture files used by clang. This patch adds the necessary logic to have
clang reuse the files from lldb's reproducer during replay.
Differential revision: https://reviews.llvm.org/D58309
llvm-svn: 354283
Diffstat (limited to 'lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp')
| -rw-r--r-- | lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp b/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp index e70e45c7975..a9a1b44731f 100644 --- a/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp +++ b/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp @@ -8,6 +8,7 @@ #include "ClangHighlighter.h" +#include "lldb/Host/FileSystem.h" #include "lldb/Target/Language.h" #include "lldb/Utility/AnsiTerminal.h" #include "lldb/Utility/StreamString.h" @@ -135,7 +136,8 @@ void ClangHighlighter::Highlight(const HighlightStyle &options, using namespace clang; FileSystemOptions file_opts; - FileManager file_mgr(file_opts); + FileManager file_mgr(file_opts, + FileSystem::Instance().GetVirtualFileSystem()); unsigned line_number = previous_lines.count('\n') + 1U; |

