mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CAS] Cache symbol graph outputs
The symbol graph output from a module can contain an arbitrary number of files, depending on what extensions it contains, so cache a list of symbol graph files with their base name and contents so that they can be replayed. rdar://140286819
This commit is contained in:
@@ -98,6 +98,7 @@ TYPE("swiftoverlay", SwiftOverlayFile, "swiftoverlay", "")
|
||||
|
||||
// Misc types
|
||||
TYPE("pcm", ClangModuleFile, "pcm", "")
|
||||
TYPE("symbol-graph", SymbolGraphFile, "symbols.json", "")
|
||||
TYPE("pch", PCH, "pch", "")
|
||||
TYPE("none", Nothing, "", "")
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ public:
|
||||
llvm::cas::ActionCache &Cache,
|
||||
llvm::cas::ObjectRef BaseKey,
|
||||
const FrontendInputsAndOutputs &InputsAndOutputs,
|
||||
const FrontendOptions &Opts,
|
||||
FrontendOptions::ActionType Action);
|
||||
~SwiftCASOutputBackend();
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ createSwiftCachingOutputBackend(
|
||||
llvm::cas::ObjectStore &CAS, llvm::cas::ActionCache &Cache,
|
||||
llvm::cas::ObjectRef BaseKey,
|
||||
const FrontendInputsAndOutputs &InputsAndOutputs,
|
||||
FrontendOptions::ActionType Action);
|
||||
const FrontendOptions &Opts, FrontendOptions::ActionType Action);
|
||||
|
||||
/// Replay the output of the compilation from cache.
|
||||
/// Return true if outputs are replayed, false otherwise.
|
||||
|
||||
Reference in New Issue
Block a user