15 #ifndef LLVM_LTO_CACHING_H
16 #define LLVM_LTO_CACHING_H
28 typedef std::function<void(unsigned Task, StringRef Path)>
AddFileFn;
std::function< void(unsigned Task, StringRef Path)> AddFileFn
This type defines the callback to add a pre-existing native object file (e.g.
std::function< AddStreamFn(unsigned Task, StringRef Key)> NativeObjectCache
This is the type of a native object cache.
NativeObjectCache localCache(std::string CacheDirectoryPath, AddFileFn AddFile)
Create a local file system cache which uses the given cache directory and file callback.