mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-11 21:37:17 +03:00
Fix LLVM trunk build.
This commit is contained in:
parent
9583b6ebe4
commit
e8b28ebae9
1 changed files with 6 additions and 1 deletions
|
@ -61,8 +61,13 @@ createAndSetDiagnosticsOutputFile(IRState &irs, llvm::LLVMContext &ctx,
|
||||||
llvm::make_unique<llvm::yaml::Output>(diagnosticsOutputFile->os()));
|
llvm::make_unique<llvm::yaml::Output>(diagnosticsOutputFile->os()));
|
||||||
|
|
||||||
// If there is instrumentation data available, also output function hotness
|
// If there is instrumentation data available, also output function hotness
|
||||||
if (!global.params.genInstrProf && global.params.datafileInstrProf)
|
if (!global.params.genInstrProf && global.params.datafileInstrProf) {
|
||||||
|
#if LDC_LLVM_VER >= 500
|
||||||
|
ctx.setDiagnosticsHotnessRequested(true);
|
||||||
|
#else
|
||||||
ctx.setDiagnosticHotnessRequested(true);
|
ctx.setDiagnosticHotnessRequested(true);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue