Trace preprocessing times

This commit is contained in:
Martin Kinkelin 2023-06-09 16:14:23 +02:00
parent 04bcdc4d06
commit 7a625251a6

View file

@ -2,6 +2,7 @@
#include "dmd/errors.h"
#include "driver/cl_options.h"
#include "driver/timetrace.h"
#include "driver/tool.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
@ -68,6 +69,8 @@ FileName getOutputPath(const Loc &loc, const char *csrcfile) {
FileName runCPreprocessor(FileName csrcfile, const Loc &loc, bool &ifile,
OutBuffer &defines) {
TimeTraceScope timeScope("Preprocess C file", csrcfile.toChars());
const char *importc_h = getPathToImportc_h(loc);
const auto &triple = *global.params.targetTriple;