File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 15
15
16
16
#include " swift/Basic/LLVM.h"
17
17
#include " swift/Serialization/SerializedModuleLoader.h"
18
- #include " llvm/ADT/DenseMap.h"
19
- #include " llvm/Support/Errc.h"
20
18
#include " llvm/Support/Regex.h"
21
19
22
20
namespace swift {
@@ -31,25 +29,6 @@ struct ParseableInterfaceOptions {
31
29
std::string ParseableInterfaceFlags;
32
30
};
33
31
34
- class PrebuiltModuleCache {
35
- StringRef cacheDir;
36
- llvm::DenseMap<StringRef, uint64_t > hashedContents;
37
- PrebuiltModuleCache (StringRef cacheDir): cacheDir(cacheDir) {}
38
-
39
- std::error_code loadHashes ();
40
- public:
41
- static llvm::ErrorOr<PrebuiltModuleCache>
42
- loadFromDirectory (StringRef directory);
43
-
44
- StringRef getDirectory () { return cacheDir; }
45
-
46
- Optional<uint64_t > getInterfaceHash (StringRef moduleName) {
47
- auto it = hashedContents.find (moduleName);
48
- if (it == hashedContents.end ()) return None;
49
- return it->second ;
50
- }
51
- };
52
-
53
32
llvm::Regex getSwiftInterfaceFormatVersionRegex ();
54
33
llvm::Regex getSwiftInterfaceModuleFlagsRegex ();
55
34
You can’t perform that action at this time.
0 commit comments