-
- Downloads
Frontend: Add a CC1 flag to dump module dependencies to a directory
This adds the -module-dependency-dir to clang -cc1, which specifies a directory to copy all of a module's dependencies into in a form suitable to be used as a VFS using -ivfsoverlay with the generated vfs.yaml. This is useful for crashdumps that involve modules, so that the module dependencies will be intact when a crash report script is used to reproduce a problem on another machine. We currently encode the absolute path to the dump directory, due to limitations in the VFS system. Until we can handle relative paths in the VFS, users of the VFS map may need to run a simple search and replace in the file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211303 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Driver/Options.td 2 additions, 0 deletionsinclude/clang/Driver/Options.td
- include/clang/Frontend/CompilerInstance.h 7 additions, 0 deletionsinclude/clang/Frontend/CompilerInstance.h
- include/clang/Frontend/DependencyOutputOptions.h 4 additions, 1 deletioninclude/clang/Frontend/DependencyOutputOptions.h
- include/clang/Frontend/Utils.h 26 additions, 0 deletionsinclude/clang/Frontend/Utils.h
- lib/Frontend/CMakeLists.txt 1 addition, 0 deletionslib/Frontend/CMakeLists.txt
- lib/Frontend/CompilerInstance.cpp 22 additions, 0 deletionslib/Frontend/CompilerInstance.cpp
- lib/Frontend/CompilerInvocation.cpp 2 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- lib/Frontend/ModuleDependencyCollector.cpp 109 additions, 0 deletionslib/Frontend/ModuleDependencyCollector.cpp
- test/Modules/dependency-dump-dependent-module.m 27 additions, 0 deletionstest/Modules/dependency-dump-dependent-module.m
- test/Modules/dependency-dump.m 25 additions, 0 deletionstest/Modules/dependency-dump.m
Loading
Please register or sign in to comment