mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Propagate llvm::vfs::FileSystem from driver_env to Clang (#4537)
As discussed in #4530 . This required switching to using `llvm::IntrusiveRefCntPtr` in a number of places. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -74,7 +74,8 @@ auto FormatSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
|
||||
|
||||
// TODO: Consider refactoring this for sharing with compile.
|
||||
// TODO: Decide what to do with `-` when there are multiple arguments.
|
||||
auto source = SourceBuffer::MakeFromFileOrStdin(driver_env.fs, f, consumer);
|
||||
auto source =
|
||||
SourceBuffer::MakeFromFileOrStdin(*driver_env.fs, f, consumer);
|
||||
if (!source) {
|
||||
mark_per_file_error();
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user