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 driver {
|
||||
class Job;
|
||||
class Compilation;
|
||||
}
|
||||
namespace incremental_ranges {
|
||||
|
||||
@@ -52,8 +53,7 @@ class SourceRangeBasedInfo {
|
||||
public:
|
||||
/// return hadError and info
|
||||
static llvm::StringMap<SourceRangeBasedInfo>
|
||||
loadAllInfo(ArrayRef<const driver::Job *>, DiagnosticEngine &,
|
||||
bool showIncrementalBuildDecisions);
|
||||
loadAllInfo(const driver::Compilation &);
|
||||
|
||||
SourceRangeBasedInfo(SourceRangeBasedInfo &&);
|
||||
|
||||
|
||||
@@ -942,8 +942,7 @@ namespace driver {
|
||||
|
||||
const auto jobs = Comp.getJobsSimply();
|
||||
const auto allSourceRangeInfo =
|
||||
incremental_ranges::SourceRangeBasedInfo::loadAllInfo(
|
||||
jobs, Comp.getDiags(), Comp.getShowIncrementalBuildDecisions());
|
||||
incremental_ranges::SourceRangeBasedInfo::loadAllInfo(Comp);
|
||||
|
||||
incremental_ranges::SourceRangeBasedInfo::dumpAllInfo(
|
||||
allSourceRangeInfo, dumpCompiledSourceDiffs, dumpSwiftRanges);
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "swift/AST/DiagnosticEngine.h"
|
||||
#include "swift/AST/DiagnosticsDriver.h"
|
||||
#include "swift/Driver/Compilation.h"
|
||||
#include "swift/Driver/Job.h"
|
||||
#include "swift/Driver/SourceComparator.h"
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
@@ -61,9 +62,11 @@ Optional<SourceRangeBasedInfo> SourceRangeBasedInfo::wholeFileChanged() {
|
||||
//==============================================================================
|
||||
|
||||
llvm::StringMap<SourceRangeBasedInfo>
|
||||
SourceRangeBasedInfo ::loadAllInfo(ArrayRef<const Job *> jobs,
|
||||
DiagnosticEngine &diags,
|
||||
const bool showIncrementalBuildDecisions) {
|
||||
SourceRangeBasedInfo ::loadAllInfo(const Compilation &Comp) {
|
||||
const auto &jobs = Comp.getJobs();
|
||||
auto &diags = Comp.getDiags();
|
||||
const auto showIncrementalBuildDecisions =
|
||||
Comp.getShowIncrementalBuildDecisions();
|
||||
|
||||
llvm::StringMap<SourceRangeBasedInfo> allInfos;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user