mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
pass compilation in to loadAllInfo in prep to do removed files
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
namespace swift {
|
namespace swift {
|
||||||
namespace driver {
|
namespace driver {
|
||||||
class Job;
|
class Job;
|
||||||
|
class Compilation;
|
||||||
}
|
}
|
||||||
namespace incremental_ranges {
|
namespace incremental_ranges {
|
||||||
|
|
||||||
@@ -52,8 +53,7 @@ class SourceRangeBasedInfo {
|
|||||||
public:
|
public:
|
||||||
/// return hadError and info
|
/// return hadError and info
|
||||||
static llvm::StringMap<SourceRangeBasedInfo>
|
static llvm::StringMap<SourceRangeBasedInfo>
|
||||||
loadAllInfo(ArrayRef<const driver::Job *>, DiagnosticEngine &,
|
loadAllInfo(const driver::Compilation &);
|
||||||
bool showIncrementalBuildDecisions);
|
|
||||||
|
|
||||||
SourceRangeBasedInfo(SourceRangeBasedInfo &&);
|
SourceRangeBasedInfo(SourceRangeBasedInfo &&);
|
||||||
|
|
||||||
|
|||||||
@@ -942,8 +942,7 @@ namespace driver {
|
|||||||
|
|
||||||
const auto jobs = Comp.getJobsSimply();
|
const auto jobs = Comp.getJobsSimply();
|
||||||
const auto allSourceRangeInfo =
|
const auto allSourceRangeInfo =
|
||||||
incremental_ranges::SourceRangeBasedInfo::loadAllInfo(
|
incremental_ranges::SourceRangeBasedInfo::loadAllInfo(Comp);
|
||||||
jobs, Comp.getDiags(), Comp.getShowIncrementalBuildDecisions());
|
|
||||||
|
|
||||||
incremental_ranges::SourceRangeBasedInfo::dumpAllInfo(
|
incremental_ranges::SourceRangeBasedInfo::dumpAllInfo(
|
||||||
allSourceRangeInfo, dumpCompiledSourceDiffs, dumpSwiftRanges);
|
allSourceRangeInfo, dumpCompiledSourceDiffs, dumpSwiftRanges);
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include "swift/AST/DiagnosticEngine.h"
|
#include "swift/AST/DiagnosticEngine.h"
|
||||||
#include "swift/AST/DiagnosticsDriver.h"
|
#include "swift/AST/DiagnosticsDriver.h"
|
||||||
|
#include "swift/Driver/Compilation.h"
|
||||||
#include "swift/Driver/Job.h"
|
#include "swift/Driver/Job.h"
|
||||||
#include "swift/Driver/SourceComparator.h"
|
#include "swift/Driver/SourceComparator.h"
|
||||||
#include "llvm/Support/FileSystem.h"
|
#include "llvm/Support/FileSystem.h"
|
||||||
@@ -61,9 +62,11 @@ Optional<SourceRangeBasedInfo> SourceRangeBasedInfo::wholeFileChanged() {
|
|||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
||||||
llvm::StringMap<SourceRangeBasedInfo>
|
llvm::StringMap<SourceRangeBasedInfo>
|
||||||
SourceRangeBasedInfo ::loadAllInfo(ArrayRef<const Job *> jobs,
|
SourceRangeBasedInfo ::loadAllInfo(const Compilation &Comp) {
|
||||||
DiagnosticEngine &diags,
|
const auto &jobs = Comp.getJobs();
|
||||||
const bool showIncrementalBuildDecisions) {
|
auto &diags = Comp.getDiags();
|
||||||
|
const auto showIncrementalBuildDecisions =
|
||||||
|
Comp.getShowIncrementalBuildDecisions();
|
||||||
|
|
||||||
llvm::StringMap<SourceRangeBasedInfo> allInfos;
|
llvm::StringMap<SourceRangeBasedInfo> allInfos;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user