forked from OSchip/llvm-project
Rewrite-imports on crash: Simplify handling
-frewrite-imports already implies -frewrite-includes (it piggy-backs on/extends the implementation) so there's no need to conditionally pass -frewrite-includes when already using -frewrite-imports (& especially I don't think these would want to be different between crash reporting and not crash reporting) llvm-svn: 346927
This commit is contained in:
parent
19d7bbe52e
commit
a99b8e4c35
|
@ -4916,7 +4916,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
// nice to enable this when doing a crashdump for modules as well.
|
||||
if (Args.hasFlag(options::OPT_frewrite_includes,
|
||||
options::OPT_fno_rewrite_includes, false) ||
|
||||
(C.isForDiagnostics() && (RewriteImports || !HaveModules)))
|
||||
(C.isForDiagnostics() && !HaveModules))
|
||||
CmdArgs.push_back("-frewrite-includes");
|
||||
|
||||
// Only allow -traditional or -traditional-cpp outside in preprocessing modes.
|
||||
|
|
Loading…
Reference in New Issue