aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/driver
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/driver')
-rw-r--r--clang/tools/driver/cc1_main.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/tools/driver/cc1_main.cpp b/clang/tools/driver/cc1_main.cpp
index 49f8843..52cffa4 100644
--- a/clang/tools/driver/cc1_main.cpp
+++ b/clang/tools/driver/cc1_main.cpp
@@ -313,17 +313,6 @@ int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
llvm::TimerGroup::clearAll();
if (llvm::timeTraceProfilerEnabled()) {
- // It is possible that the compiler instance doesn't own a file manager here
- // if we're compiling a module unit. Since the file manager are owned by AST
- // when we're compiling a module unit. So the file manager may be invalid
- // here.
- //
- // It should be fine to create file manager here since the file system
- // options are stored in the compiler invocation and we can recreate the VFS
- // from the compiler invocation.
- if (!Clang->hasFileManager())
- Clang->createFileManager();
-
if (auto profilerOutput = Clang->createOutputFile(
Clang->getFrontendOpts().TimeTracePath, /*Binary=*/false,
/*RemoveFileOnSignal=*/false,