Skip to content

Commit f69a82b

Browse files
committed
[clang] Restore profile-use driver support after bad merge.
ceeb20e dropped this. We have tests that catch that. rdar://150554157
1 parent 6f22b11 commit f69a82b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,6 +2206,11 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args,
22062206
: llvm::codegenoptions::DebugTemplateNamesKind::Mangled);
22072207
}
22082208

2209+
if (!Opts.ProfileInstrumentUsePath.empty()) {
2210+
auto FS = createBaseFS(FSOpts, FEOpts, CASOpts, Diags, nullptr);
2211+
setPGOUseInstrumentor(Opts, Opts.ProfileInstrumentUsePath, *FS, Diags);
2212+
}
2213+
22092214
if (const Arg *A = Args.getLastArg(OPT_ftime_report, OPT_ftime_report_EQ,
22102215
OPT_ftime_report_json)) {
22112216
Opts.TimePasses = true;

0 commit comments

Comments
 (0)