| 30 | namespace cl { |
| 31 | |
| 32 | ProgramCache::ProgramDescriptor::ProgramDescriptor(const std::string& code_text, |
| 33 | const std::string& options, |
| 34 | bool use_fingerprints) |
| 35 | : code(code_text), |
| 36 | compiler_options(options), |
| 37 | use_fingerprint(use_fingerprints) { |
| 38 | const uint64_t code_fingerprint = ::util::Fingerprint64(code); |
| 39 | const uint64_t options_fingerprint = |
| 40 | ::util::Fingerprint64(compiler_options); |
| 41 | fingerprint = code_fingerprint + options_fingerprint; |
| 42 | } |
| 43 | |
| 44 | ProgramCache::ProgramDescriptor::ProgramDescriptor(uint64_t fingerprints) |
| 45 | : fingerprint(fingerprints), use_fingerprint(true) {} |
nothing calls this directly
no test coverage detected