mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03:00
Merge branch 'master' into merge-2.078
Conflicts: driver/main.cpp gen/cl_helpers.h gen/declarations.cpp runtime/druntime tests/d2/dmd-testsuite
This commit is contained in:
commit
197e65efde
83 changed files with 5863 additions and 626 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "module.h"
|
||||
#include "scope.h"
|
||||
#include "driver/cl_options.h"
|
||||
#include "driver/cl_options_instrumentation.h"
|
||||
#include "driver/linker.h"
|
||||
#include "driver/toobj.h"
|
||||
#include "gen/logger.h"
|
||||
|
@ -68,7 +69,7 @@ createAndSetDiagnosticsOutputFile(IRState &irs, llvm::LLVMContext &ctx,
|
|||
llvm::make_unique<llvm::yaml::Output>(diagnosticsOutputFile->os()));
|
||||
|
||||
// If there is instrumentation data available, also output function hotness
|
||||
if (!global.params.genInstrProf && global.params.datafileInstrProf) {
|
||||
if (opts::isUsingPGOProfile()) {
|
||||
#if LDC_LLVM_VER >= 500
|
||||
ctx.setDiagnosticsHotnessRequested(true);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue