summaryrefslogtreecommitdiffstats
path: root/source/Utility/ModuleCache.h
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-12-30 11:55:28 +0000
committerdim <dim@FreeBSD.org>2015-12-30 11:55:28 +0000
commit66b75430a93929d6fc6ed63db14ca28e3ad5b1f6 (patch)
tree9ed5e1a91f242e2cb5911577356e487a55c01b78 /source/Utility/ModuleCache.h
parent23814158e5384f73c6fa951b66d5f807f9c24a2b (diff)
downloadFreeBSD-src-66b75430a93929d6fc6ed63db14ca28e3ad5b1f6.zip
FreeBSD-src-66b75430a93929d6fc6ed63db14ca28e3ad5b1f6.tar.gz
Vendor import of stripped lldb trunk r256633:
https://llvm.org/svn/llvm-project/lldb/trunk@256633
Diffstat (limited to 'source/Utility/ModuleCache.h')
-rw-r--r--source/Utility/ModuleCache.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/Utility/ModuleCache.h b/source/Utility/ModuleCache.h
index 791e2b3..bb9b308 100644
--- a/source/Utility/ModuleCache.h
+++ b/source/Utility/ModuleCache.h
@@ -46,13 +46,15 @@ class UUID;
class ModuleCache
{
public:
- using Downloader = std::function<Error (const ModuleSpec&, const FileSpec&)>;
+ using ModuleDownloader = std::function<Error (const ModuleSpec&, const FileSpec&)>;
+ using SymfileDownloader = std::function<Error (const lldb::ModuleSP&, const FileSpec&)>;
Error
GetAndPut(const FileSpec &root_dir_spec,
const char *hostname,
const ModuleSpec &module_spec,
- const Downloader &downloader,
+ const ModuleDownloader &module_downloader,
+ const SymfileDownloader &symfile_downloader,
lldb::ModuleSP &cached_module_sp,
bool *did_create_ptr);
@@ -61,7 +63,8 @@ private:
Put (const FileSpec &root_dir_spec,
const char *hostname,
const ModuleSpec &module_spec,
- const FileSpec &tmp_file);
+ const FileSpec &tmp_file,
+ const FileSpec &target_file);
Error
Get (const FileSpec &root_dir_spec,
OpenPOWER on IntegriCloud